Skip to content

Commit

Permalink
ci: fix tag action (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
danroc authored Dec 7, 2024
1 parent 1be20e0 commit 917d740
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
publish-docker:
runs-on: ubuntu-latest

permissions:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
tag-release:
runs-on: ubuntu-latest

outputs:
TAG: ${{ steps.tag-release.outputs.TAG }}

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -25,6 +28,7 @@ jobs:
echo "TAG=$TAG" >> "$GITHUB_OUTPUT"
fi
- name: Trigger publish
if: steps.tag-release.outputs.TAG != ''
uses: ./.github/workflows/publish-docker.yml
publish-docker:
needs: tag-release
if: needs.tag-release.outputs.TAG != ''
uses: ./.github/workflows/publish-docker.yml

0 comments on commit 917d740

Please sign in to comment.