Skip to content

Commit 84c4980

Browse files
committed
update so build and scan works
1 parent 33896c7 commit 84c4980

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/workflows/vulnerability-scan.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414

1515
jobs:
1616
trivy-scans:
17+
name: Trivy Scans (latest)
1718
runs-on: ubuntu-22.04
1819
steps:
1920
- name: Scan latest released image with trivy
@@ -33,6 +34,7 @@ jobs:
3334
format: table
3435

3536
grype-scans:
37+
name: Grype Scans (latest)
3638
runs-on: ubuntu-22.04
3739
steps:
3840
- name: Scan latest release image with grype
@@ -54,6 +56,7 @@ jobs:
5456
output-format: table
5557

5658
rust-dependency-scan:
59+
name: Rust Dependencies Scan
5760
runs-on: ubuntu-22.04
5861
steps:
5962
- name: Checkout repository
@@ -66,20 +69,24 @@ jobs:
6669
working-directory: bottlecap
6770

6871
build-and-scan-images:
72+
name: Build and Scan Images
6973
runs-on: ubuntu-22.04
7074
strategy:
7175
matrix:
7276
include:
73-
- arch: amd64
77+
- name: amd64
78+
arch: amd64
7479
alpine: 0
7580
suffix: amd64
76-
- arch: amd64
81+
- name: amd64-alpine
82+
arch: amd64
7783
alpine: 1
7884
suffix: amd64-alpine
79-
- arch: arm64
85+
- name: arm64
8086
alpine: 0
8187
suffix: arm64
82-
- arch: arm64
88+
- name: arm64-alpine
89+
arch: arm64
8390
alpine: 1
8491
suffix: arm64-alpine
8592
fail-fast: false
@@ -104,7 +111,7 @@ jobs:
104111

105112
- name: Build layer (${{ matrix.suffix }})
106113
run: |
107-
ARCHITECTURE=${{ matrix.arch }} FILE_SUFFIX=${{ matrix.suffix }} ./.gitlab/scripts/build_layer.sh
114+
COMPRESSER_IMAGE=ubuntu:22.04 ARCHITECTURE=${{ matrix.arch }} FILE_SUFFIX=${{ matrix.suffix }} ./.gitlab/scripts/build_layer.sh
108115
env:
109116
DOCKER_BUILDKIT: 1
110117

images/Dockerfile.build_layer

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM registry.ddbuild.io/images/mirror/ubuntu:22.04 AS compresser
1+
ARG COMPRESSER_IMAGE=registry.ddbuild.io/images/mirror/ubuntu:22.04
2+
FROM $COMPRESSER_IMAGE AS compresser
23
ARG DATADOG_WRAPPER=datadog_wrapper
34
ARG FILE_SUFFIX
45

0 commit comments

Comments
 (0)