Skip to content

Commit

Permalink
Fix CI incorrectly tagging RC releases and disables docker builds on …
Browse files Browse the repository at this point in the history
…forks (#686)

* properly tag rc releases

* avoid builds on forked prs

* simplify condition
  • Loading branch information
fmartingr committed Jul 30, 2023
1 parent 307f293 commit e5f2de0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/_buildx.yml
Expand Up @@ -26,10 +26,9 @@ jobs:
- name: Prepare master push tags
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
echo "tag_flags=--tag ${{ github.ref }}" >> $GITHUB_ENV
REPO=ghcr.io/${{ github.repository }}
TAG=$(git describe --tags)
if [ -z "$(git tag --points-at HEAD)" ]
if [ -z "$(git tag --points-at HEAD)" ] || [ "$TAG" == *"rc"* ]
then
TAG2="dev"
else
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pull_request.yml
Expand Up @@ -19,4 +19,6 @@ jobs:
uses: ./.github/workflows/_gorelease.yml
call-buildx:
needs: call-gorelease
# only build on pull requests from the same repo for now
if: github.event.pull_request.head.repo.full_name == github.repository
uses: ./.github/workflows/_buildx.yml

0 comments on commit e5f2de0

Please sign in to comment.