Skip to content

Commit

Permalink
fixing metadata for docker image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarcelo committed Feb 12, 2025
1 parent d26304e commit b5d2033
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ jobs:
type=edge,suffix=-py${{ matrix.python-version }},branch=main
type=edge,enable=${{ matrix.python-version == '3.10' }},branch=main
# Extract metadata (tags, labels) for Docker
- name: Extract Docker metadata
id: legacy-deps-meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=edge,suffix=-legacydeps-py${{ matrix.python-version }},branch=main
type=edge,suffix=-legacydeps,enable=${{ matrix.python-version == '3.10' }},branch=main
# Build and push Docker image with Buildx (don't push on PR)
- name: Build and push Docker image
id: build-and-push
Expand All @@ -89,7 +99,7 @@ jobs:
PYTHON_VERSION=${{ matrix.python-version }}-bullseye
LEGACY_DEPS=True
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}-legacydeps
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.legacy-deps-meta.outputs.tags }}
labels: ${{ steps.legacy-deps-meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit b5d2033

Please sign in to comment.