-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (33 loc) · 1.16 KB
/
makefile.yml
File metadata and controls
41 lines (33 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: SimpleSigning demo
on:
workflow_dispatch:
jobs:
build-and-sign:
name: build and sign with signum
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libcurl4-gnutls-dev curl libssl-dev automake autoconf libtool
sudo apt autoremove -y
- uses: actions/checkout@v2
- name: clean and build
run: |
make clean
make opentest
- name: sign
run: |
curl --cacert certs/it-ss01-pkihosted-dev-c2company-com-chain.pem -F "workerName=PlainSigner" -F "file=@./agent" \https://it-ss01.pkihosted-dev.c2company.com/signserver/process > agent.sig
- name: commit signature + binary #todo make this a release
run: |
git config --global user.name 'signature action'
git config --global user.email 'sukhyung.shin@keyfactor.com'
rm -rf signature
mkdir signature
mv agent signature/.
mv agent.sig signature/.
git add -f signature/agent
git add -f signature/agent.sig
git commit -m "automated signature"
git push