File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,12 @@ jobs:
36
36
GHCR_TOKEN : ${{ secrets.GHCR_TOKEN}}
37
37
run : |
38
38
SOURCE_CHECKSUM=$(find hpc_provisioner -type f -exec sha256sum {} \; | sha256sum | awk '{print $1}')
39
- docker build --label "org.opencontainers.image.checksum=${SOURCE_CHECKSUM}" --label "org.opencontainers.image.software_version=${REL_TAG}" -t openbraininstitute/hpc-resource-provisioner:${REL_TAG} .
40
- docker image tag openbraininstitute/hpc-resource-provisioner:${REL_TAG} openbraininstitute/hpc-resource-provisioner:latest
39
+ IMAGE_NAME=ghcr.io/openbraininstitute/hpc-resource-provisioner
40
+ docker build --label "org.opencontainers.image.checksum=${SOURCE_CHECKSUM}" --label "org.opencontainers.image.software_version=${REL_TAG}" -t ${IMAGE_NAME}:${REL_TAG} .
41
+ docker image tag ${IMAGE_NAME}:${REL_TAG} ${IMAGE_NAME}:latest
41
42
echo ${GHCR_TOKEN} | docker login ghcr.io -u ${GHCR_USER} --password-stdin
42
- docker push openbraininstitute/hpc-resource-provisioner:${REL_TAG} ghcr.io/openbraininstitute/hpc-resource-provisioner :${REL_TAG}
43
- docker push openbraininstitute/hpc-resource-provisioner:latest ghcr.io/openbraininstitute/hpc-resource-provisioner :latest
43
+ docker push ${IMAGE_NAME} :${REL_TAG}
44
+ docker push ${IMAGE_NAME} :latest
44
45
working-directory : ${{runner.workspace}}/hpc-resource-provisioner
45
46
- name : Release
46
47
uses : softprops/action-gh-release@v2
You can’t perform that action at this time.
0 commit comments