Skip to content

Commit

Permalink
image-build on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilos77 committed Feb 14, 2025
1 parent 667fdab commit 70832dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/image-build-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ permissions:

jobs:
version:
if: startsWith(github.event.release.tag_name, 'container-')
if: startsWith(github.ref_name, 'container-')
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- id: version
run: |
TAG=${{ github.event.release.tag_name }}
TAG=${{ github.ref_name }}
echo "version=${TAG#container-}" >> "$GITHUB_OUTPUT"
build-image:
if: startsWith(github.event.release.tag_name, 'container-')
if: startsWith(github.ref_name, 'container-')
strategy:
matrix:
arch: ["amd64"]
Expand Down

0 comments on commit 70832dd

Please sign in to comment.