File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,18 @@ jobs:
3232 IMAGE="ghcr.io/$GITHUB_REPOSITORY:${DOCKER_TAG}"
3333 IMAGE_MAJOR="ghcr.io/$GITHUB_REPOSITORY:${DOCKER_TAG_MAJOR}"
3434 IMAGE_MAJOR_MINOR="ghcr.io/$GITHUB_REPOSITORY:${DOCKER_TAG_MAJOR_MINOR}"
35+ IMAGE_SHA="ghcr.io/$GITHUB_REPOSITORY:${GITHUB_SHA}"
3536 echo "IMAGE=$IMAGE" >>"$GITHUB_ENV"
3637 echo "IMAGE_MAJOR=$IMAGE_MAJOR" >>"$GITHUB_ENV"
3738 echo "IMAGE_MAJOR_MINOR=$IMAGE_MAJOR_MINOR" >>"$GITHUB_ENV"
39+ echo "IMAGE_SHA=$IMAGE_SHA" >>"$GITHUB_ENV"
3840 docker build . \
3941 --build-arg BUILDKIT_INLINE_CACHE=1 \
4042 --cache-from $IMAGE \
4143 --tag $IMAGE
4244 docker tag $IMAGE $IMAGE_MAJOR
4345 docker tag $IMAGE $IMAGE_MAJOR_MINOR
46+ docker tag $IMAGE $IMAGE_SHA
4447 env :
4548 DOCKER_TAG : ${{ inputs.tag || github.ref_name }}
4649 - name : Log in to GHCR
5255 docker push $IMAGE
5356 docker push $IMAGE_MAJOR
5457 docker push $IMAGE_MAJOR_MINOR
58+ docker push $IMAGE_SHA
You can’t perform that action at this time.
0 commit comments