Skip to content

Commit

Permalink
Rework push logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscariremma committed Nov 5, 2024
1 parent f0f0a58 commit 03edf8a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-and-publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ jobs:
- name: Build Docker image
run: ./gradlew bootBuildImage

- name: Create manifest list and push
- name: Push docker image
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
app:latest
for tag in $(jq -r '.tags | join(" ")' <<< "${{ steps.meta.outputs.metadata }}"); do
docker image tag app:latest $tag
done
docker image push --all-tags ghcr.io/${{ github.repository_owner }}/gamma

0 comments on commit 03edf8a

Please sign in to comment.