Skip to content

Commit

Permalink
add tag build
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Feb 4, 2025
1 parent c5371cd commit 45a4548
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
tags:
pull_request:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -32,6 +33,7 @@ jobs:
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
echo "VERSION=${{ github.event.inputs.version || (startsWith(github.ref, 'refs/tags/v') && github.ref_name) || 'main' }}" >> $GITHUB_ENV
- name: Docker meta
id: meta
Expand Down Expand Up @@ -61,8 +63,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.GHCR_REPO }},push-by-digest=true,name-canonical=true,push=true
build-args: |
VERSION=${{ github.event.inputs.version || 'main' }}
VERSION=${{ env.VERSION }}
- name: Export digest
run: |
mkdir -p ${{ runner.temp }}/digests
Expand Down Expand Up @@ -108,8 +109,7 @@ jobs:
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=ref,event=tag
- name: Create manifest list and push
working-directory: ${{ runner.temp }}/digests
Expand Down

0 comments on commit 45a4548

Please # to comment.