Skip to content

Commit

Permalink
Modify the tagging for the manifest list creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetkillioglu committed Oct 24, 2024
1 parent cd564bf commit 92cf4b8
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ jobs:
with:
images: ghcr.io/tiiuae/tii-fastdds-artifacts
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=sha
- name: Login to GitHub Container Registry
Expand All @@ -112,10 +115,13 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create combined image
run : |
echo "Debug: Tags are ${{ steps.meta.outputs.tags }}"
docker manifest create $(echo "${{ steps.meta.outputs.tags }}" | head -1) \
$(echo "${{ steps.meta.outputs.tags }}" | head -1)-amd64 \
$(echo "${{ steps.meta.outputs.tags }}" | head -1)-arm64
docker manifest push $(echo "${{ steps.meta.outputs.tags }}" | head -1)
- name: Create combined image manifests
run: |
echo "Debug: Tags are ${{ steps.meta.outputs.tags }}"
for tag in ${{ steps.meta.outputs.tags }}; do
echo "Creating manifest for tag: $tag"
docker manifest create "$tag" \
"$tag-amd64" \
"$tag-arm64"
docker manifest push "$tag"
done

0 comments on commit 92cf4b8

Please sign in to comment.