@@ -10,13 +10,15 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- uses : actions/checkout@v1
13
+ - name : Set up QEMU
14
+ uses : docker/setup-qemu-action@v1
13
15
- name : Build
14
16
env :
15
17
REPO : ${{ github.repository }}
16
18
shell : bash
17
19
run : |
18
20
echo "docker_repo=${{ env.REPO }}" >> $GITHUB_ENV
19
- make build
21
+ make build && make build-arm64
20
22
- name : Trivy vulnerability scanner
21
23
uses :
aquasecurity/[email protected]
22
24
with :
@@ -26,26 +28,39 @@ jobs:
26
28
ignore-unfixed : true
27
29
vuln-type : ' os,library'
28
30
severity : ' CRITICAL,HIGH'
31
+ - name : Trivy vulnerability scanner on arm64 image
32
+ uses :
aquasecurity/[email protected]
33
+ with :
34
+ image-ref : ' ${{ env.docker_repo }}:latest-arm64'
35
+ format : ' table'
36
+ exit-code : ' 1'
37
+ ignore-unfixed : true
38
+ vuln-type : ' os,library'
39
+ severity : ' CRITICAL,HIGH'
29
40
test :
30
41
runs-on : ubuntu-latest
31
42
steps :
32
43
- uses : actions/checkout@v1
44
+ - name : Set up QEMU
45
+ uses : docker/setup-qemu-action@v1
33
46
- name : Build
34
47
shell : bash
35
- run : make build
48
+ run : make build && make build-arm64
36
49
- name : Test
37
- run : make test
50
+ run : make test
38
51
publish :
39
52
needs : [scan, test]
40
53
if : github.repository == 'rust-serverless/lambda-rust'
41
54
runs-on : ubuntu-latest
42
55
steps :
43
56
- uses : actions/checkout@v1
57
+ - name : Set up QEMU
58
+ uses : docker/setup-qemu-action@v1
44
59
- name : Build
45
60
shell : bash
46
- run : make build
61
+ run : make build && make build-arm64
47
62
- name : Publish Latest
48
63
shell : bash
49
64
run : |
50
65
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
51
- make publish
66
+ make publish && make publish-arm64
0 commit comments