Skip to content

Commit

Permalink
Merge pull request #478 from fluxcd/docker-sbom
Browse files Browse the repository at this point in the history
build: Enable SBOM and SLSA Provenance
  • Loading branch information
stefanprodan authored Jan 30, 2023
2 parents d3eb70b + 576cd7e commit 6766f3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF/refs\/tags\//}
fi
echo ::set-output name=BUILD_DATE::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
echo ::set-output name=VERSION::${VERSION}
echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Setup Docker Buildx
Expand Down Expand Up @@ -62,6 +62,8 @@ jobs:
- name: Publish images
uses: docker/build-push-action@v3
with:
sbom: true
provenance: true
push: true
builder: ${{ steps.buildx.outputs.name }}
context: .
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ RUN export CGO_LDFLAGS="-static -fuse-ld=lld" && \
# Ensure that the binary was cross-compiled correctly to the target platform.
RUN xx-verify --static /image-automation-controller

FROM alpine:3.16
FROM alpine:3.17

ARG TARGETPLATFORM
RUN apk --no-cache add ca-certificates \
Expand Down

0 comments on commit 6766f3b

Please sign in to comment.