Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
jaluma committed Jul 18, 2024
1 parent 852f5c2 commit e003d8f
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/generate-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,34 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{version}}-${{ matrix.type }}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}.{{minor}}-${{ matrix.type }}
type=semver,pattern={{major}}
type=semver,pattern={{major}}-${{ matrix.type }}
type=sha
- name: Extract metadata (tags, labels) for Docker
id: tagging
uses: HackerHappyHour/tagging-strategy@v3
with:
image_name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tag_name: ${{ github.event.release.tag_name }}
tags: |
%X%-${{ matrix.type}}
%X.Y%-${{ matrix.type}}
%X.Y.Z%-${{ matrix.type}}
extra_tags: |
latest::${{ matrix.type == 'external'}}
%X%::${{ matrix.type == 'external'}}
%X.Y%::${{ matrix.type == 'external'}}
%X.Y.Z%::${{ matrix.type == 'external'}}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.${{ matrix.type }}
platforms: ${{ env.platforms }}
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: |
${{ steps.tagging.outputs.tags }}
${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Version output
Expand Down

0 comments on commit e003d8f

Please sign in to comment.