-
Notifications
You must be signed in to change notification settings - Fork 57
47 lines (38 loc) · 1.06 KB
/
pr-build.yml
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
42
43
44
45
46
on: push
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sidecar project
uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: "compile"
run: |
go version
go mod vendor
make test
make build-all
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Sign windows binaries
run: >
docker run --rm
-u jenkins:jenkins
-e 'CODESIGN_USER=$CODESIGN_USER'
-e 'CODESIGN_PASS=$CODESIGN_PASS'
-e 'CODESIGN_TOTP_SECRET=$CODESIGN_TOTP_SECRET'
-e 'CODESIGN_CREDENTIAL_ID=$CODESIGN_CREDENTIAL_ID'
-v $(pwd):/home/jenkins
graylog/internal-codesigntool:latest
make sign-binaries
env:
CODESIGN_USER: test