Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 3f02e00

Browse files
committed
Add a checksum to the container image
1 parent 7c365f1 commit 3f02e00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
working-directory: ${{runner.workspace}}/hpc-resource-provisioner
3333
- name: Build and push container
3434
run: |
35-
docker build -t hpc-resource-provisioner:${REL_TAG}
35+
SOURCE_CHECKSUM=$(find hpc_provisioner -type f -exec sha256sum {} \; | sha256sum | awk '{print $1}')
36+
docker build --label "org.opencontainers.image.checksum=${SOURCE_CHECKSUM}" --label-t hpc-resource-provisioner:${REL_TAG}
3637
docker login -u bbpbuildbot -p ${BBPBUILDBOT_DOCKERHUB_PASSWORD}
3738
docker push hpc-resource-provisioner:${REL_TAG} docker.io/bluebrain/hpc-resource-provisioner:${REL_TAG}
3839
docker push hpc-resource-provisioner:${REL_TAG} docker.io/bluebrain/hpc-resource-provisioner:latest

0 commit comments

Comments
 (0)