File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change 18
18
jobs :
19
19
build-docker :
20
20
runs-on :
21
- - self-hosted
22
- - Linux
23
- - ${{ matrix.runner }}
24
-
21
+ - codebuild-defguard-gateway-runner-${{ github.run_id }}-${{ github.run_attempt }}
22
+ image:${{ matrix.os }}
23
+ instance-size:${{ matrix.size }}
25
24
strategy :
26
25
matrix :
27
- cpu : [arm64, amd64, arm/v7]
28
26
include :
29
- - cpu : arm64
30
- runner : ARM64
27
+ - os : arm-3.0
28
+ size : xlarge
29
+ cpu : arm64
31
30
tag : arm64
32
- - cpu : amd64
33
- runner : X64
31
+ - os : ubuntu-7.0
32
+ size : xlarge
33
+ cpu : amd64
34
34
tag : amd64
35
- - cpu : arm/v7
36
- runner : ARM
35
+ - os : arm-3.0
36
+ size : xlarge
37
+ cpu : arm/v7
37
38
tag : armv7
38
39
39
40
permissions :
55
56
56
57
- name : Set up Docker Buildx
57
58
uses : docker/setup-buildx-action@v3
58
- with :
59
- buildkitd-config-inline : |
60
- [registry."docker.io"]
61
- mirrors = ["dockerhub-proxy.teonite.net"]
62
59
63
60
- name : Build container
64
61
uses : docker/build-push-action@v5
68
65
provenance : false
69
66
push : true
70
67
tags : " ${{ env.GHCR_REPO }}:${{ github.sha }}-${{ matrix.tag }}"
71
- cache-from : type=gha
72
- cache-to : type=gha,mode=max
68
+ cache-from : |
69
+ type=registry,ref=${{ env.GHCR_REPO }}:cache-${{ matrix.tag }}
70
+ type=registry,ref=${{ env.GHCR_REPO }}:cache-${{ matrix.tag }}-${{ github.ref_name }}
71
+ cache-to : type=registry,mode=max,ref=${{ env.GHCR_REPO }}:cache-${{ matrix.tag }}-${{ github.ref_name }}
73
72
74
73
- name : Scan image with Trivy
75
74
uses :
aquasecurity/[email protected]
You can’t perform that action at this time.
0 commit comments