Skip to content

Commit

Permalink
chore(image): use docker/pull/tag/push to create latest
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitf authored Sep 25, 2020
1 parent 39f19e0 commit 9c64b39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ jobs:
echo "Building and pushing version ${IMAGE_VERSION} of image ${IMAGE_NAME}"
docker buildx build --platform "${PLATFORMS}" -t "${IMAGE_NAME}:${IMAGE_VERSION}-${SHORT_SHA1}" \
--push .
skopeo login --username ${{ secrets.QUAY_USERNAME }} --password ${{ secrets.QUAY_PASSWORD }} quay.io
skopeo copy docker://${IMAGE_NAME}:${IMAGE_VERSION}-${SHORT_SHA1} docker://${IMAGE_NAME}:latest
docker pull ${IMAGE_NAME}:${IMAGE_VERSION}-${SHORT_SHA1}
docker tag ${IMAGE_NAME}:${IMAGE_VERSION}-${SHORT_SHA1} ${IMAGE_NAME}:latest
docker push ${IMAGE_NAME}:latest

0 comments on commit 9c64b39

Please sign in to comment.