Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
martijndeb authored Jan 5, 2024
1 parent 5bdf400 commit d5acb23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ jobs:
id: build-and-push
run: |
docker-compose build
DOCKER_IMAGE=$(docker-compose images --format "{{.Repository}}:{{.Tag}}")
docker-compose push
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' ${DOCKER_IMAGE})
DOCKER_OUTPUT=$(docker-compose push)
DIGEST=$(echo "${DOCKER_OUTPUT}" | grep -oP '(?<=digest: ).*')
echo "DIGEST=${DIGEST}" >> $GITHUB_ENV
env:
DOCKER_BUILDKIT: 1
Expand Down

0 comments on commit d5acb23

Please sign in to comment.