Skip to content

Commit

Permalink
Try different context varible to get branch
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianDAlessandro committed Aug 2, 2024
1 parent c69ca6e commit 7d5f9df
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
runs-on: ubuntu-20.04
needs: test
steps:
- run: echo ${{ github.event.release.target_commitish }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
Expand All @@ -25,9 +26,9 @@ jobs:
type=semver,pattern={{raw}}
type=raw,value=latest,enable=${{ !github.event.release.prerelease }}
type=raw,value=pre-release,enable=${{ github.event.release.prerelease }}
type=raw,value=stable,enable=${{ !github.event.release.prerelease && github.ref == 'refs/heads/main'}}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
type=raw,value=stable,enable=${{ !github.event.release.prerelease && github.event.release.target_commitish == 'fix-stabl-tag'}}
# - name: Build and push Docker image
# uses: docker/build-push-action@v2
# with:
# push: true
# tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 7d5f9df

Please sign in to comment.