Skip to content

Commit

Permalink
fix: latest tag manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Jan 20, 2025
1 parent 00e2df4 commit 7d3079d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,17 @@ jobs:
- name: Create SHA manifest and push
run: |
for tag in $(echo "${{ needs.build-containers.outputs.tags }}" | tr ',' '\n'); do
base_tag=$(echo $tag | sed -E 's/.*:(.*)-(amd64|arm64)/\1/')
if [ "$base_tag" != "latest" ]; then
echo "Processing $tag, using base tag $base_tag"
docker manifest create \
ghcr.io/tamatebako/tebako-${{ matrix.container }}:$base_tag \
--amend ghcr.io/tamatebako/tebako-${{ matrix.container }}:$base_tag-amd64 \
--amend ghcr.io/tamatebako/tebako-${{ matrix.container }}:$base_tag-arm64
docker manifest push ghcr.io/tamatebako/tebako-${{ matrix.container }}:$base_tag
if [[ $tag == *:latest ]]; then
base_tag="latest"
else
base_tag=$(echo $tag | sed -E 's/.*:(.*)-(amd64|arm64)/\1/')
fi
echo "Processing $tag, using base tag $base_tag"
docker manifest create \
ghcr.io/tamatebako/tebako-${{ matrix.container }}:$base_tag \
--amend ghcr.io/tamatebako/tebako-${{ matrix.container }}:$base_tag-amd64 \
--amend ghcr.io/tamatebako/tebako-${{ matrix.container }}:$base_tag-arm64
docker manifest push ghcr.io/tamatebako/tebako-${{ matrix.container }}:$base_tag
done
dispatch-dependent-repositories:
Expand Down

0 comments on commit 7d3079d

Please sign in to comment.