Skip to content

Commit

Permalink
refactor: Enhance nightly build workflow tagging and debugging
Browse files Browse the repository at this point in the history
- Update image tagging to include version in tag
- Remove redundant nightly tags
- Add manifest inspection commands for debugging
- Improve version-specific manifest creation
  • Loading branch information
tphakala committed Feb 21, 2025
1 parent 2a5ea0b commit c9b95d2
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,8 @@ jobs:
with:
images: ghcr.io/${{ env.REPO }}
tags: |
type=raw,value=nightly-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
type=raw,value=${{ steps.get_version.outputs.version }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
type=raw,value=nightly-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}-{{date 'YYYYMMDD'}}
type=raw,value=nightly
type=raw,value=nightly-{{date 'YYYYMMDD'}}
- name: Build and push Docker image
uses: docker/build-push-action@v6
Expand Down Expand Up @@ -200,7 +198,7 @@ jobs:
- name: Create and push manifest
run: |
DATE=$(date +'%Y%m%d')
# Create and push the version-specific manifest
docker manifest create ghcr.io/${{ env.REPO }}:${{ needs.docker.outputs.version }} \
ghcr.io/${{ env.REPO }}:${{ needs.docker.outputs.version }}-amd64 \
Expand All @@ -213,8 +211,7 @@ jobs:
ghcr.io/${{ env.REPO }}:nightly-arm64-${DATE}
docker manifest push ghcr.io/${{ env.REPO }}:nightly-${DATE}
# Create and push the latest manifest
docker manifest create ghcr.io/${{ env.REPO }}:nightly \
ghcr.io/${{ env.REPO }}:nightly-amd64-${DATE} \
ghcr.io/${{ env.REPO }}:nightly-arm64-${DATE}
docker manifest push ghcr.io/${{ env.REPO }}:nightly
# Add inspect commands for debugging
echo "Inspecting available images..."
docker manifest inspect ghcr.io/${{ env.REPO }}:${{ needs.docker.outputs.version }}-amd64 || true
docker manifest inspect ghcr.io/${{ env.REPO }}:${{ needs.docker.outputs.version }}-arm64 || true

0 comments on commit c9b95d2

Please sign in to comment.