Skip to content

Commit

Permalink
Fix publish workflow dispatch tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Jan 8, 2025
1 parent 96b1b13 commit 03bfb53
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- v*
workflow_dispatch:
inputs:
tag:
description: 'Omnibus version tag to use for images'
required: true
projects:
description: 'Comma separated list of projects to test'
required: false
Expand Down Expand Up @@ -37,6 +40,8 @@ jobs:
max-parallel: 10
matrix:
project: ${{ fromJson(needs.build_matrix.outputs.matrix) }}
env:
TAG: ${{ github.event.inputs.tag }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -53,9 +58,9 @@ jobs:
run: |
VERSION=$(yq '.services.node.build.args.VERSION // ""' ./${{matrix.project}}/build.yml)
if [ -n "$VERSION" ]; then
echo "image-tag=${GITHUB_REF#refs/tags/}-${{matrix.project}}-$VERSION" >> $GITHUB_OUTPUT
echo "image-tag=${{ env.tag || github.ref_name }}-${{matrix.project}}-$VERSION" >> $GITHUB_OUTPUT
else
echo "image-tag=${GITHUB_REF#refs/tags/}-${{matrix.project}}" >> $GITHUB_OUTPUT
echo "image-tag=${{ env.tag || github.ref_name }}-${{matrix.project}}" >> $GITHUB_OUTPUT
fi
- name: Build and push
uses: docker/bake-action@v5
Expand Down

0 comments on commit 03bfb53

Please sign in to comment.