Skip to content

Commit

Permalink
https://github.com/Hi-Windom/Sillot/issues/851
Browse files Browse the repository at this point in the history
  • Loading branch information
Soltus committed Aug 17, 2024
1 parent 08dd98d commit 673daf8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ jobs:
TAG_ARGS=()
for TAG in "${TAGS[@]}"; do
TAG_ARGS+=("-t" "${{ env.docker_hub_owner }}/${{ env.docker_hub_repo }}:$TAG")
TAG_ARGS+=("-t" "${{ env.docker_hub_owner }}/${{ env.docker_hub_repo }}:$TAG-${{ github.event.inputs.image_tag }}")
if [ "$TAG" != "latest" ]; then
TAG_ARGS+=("-t" "${{ env.docker_hub_owner }}/${{ env.docker_hub_repo }}:$TAG-${{ github.event.inputs.image_tag }}")
fi
done
# Run the docker buildx command once with all the -t options
docker buildx build --push --platform linux/amd64 \
Expand All @@ -140,7 +142,9 @@ jobs:
TAG_ARGS=()
for TAG in "${TAGS[@]}"; do
TAG_ARGS+=("-t" "${{ env.docker_hub_owner }}/${{ env.docker_hub_repo }}:$TAG")
TAG_ARGS+=("-t" "${{ env.docker_hub_owner }}/${{ env.docker_hub_repo }}:$TAG-${{ steps.version.outputs.value }}")
if [ "$TAG" != "latest" ]; then
TAG_ARGS+=("-t" "${{ env.docker_hub_owner }}/${{ env.docker_hub_repo }}:$TAG-${{ steps.version.outputs.value }}")
fi
done
# Run the docker buildx command once with all the -t options
docker buildx build --push --platform linux/amd64 \
Expand Down

0 comments on commit 673daf8

Please sign in to comment.