Skip to content

Commit

Permalink
Make build and release mutually exclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed Apr 27, 2024
1 parent fe858bc commit ff61e44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ permissions:

jobs:
build:
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
steps:
- name: Set REPOSITORY
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dockerrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ name: Docker Release
on:
release:
types: [published]
workflow_dispatch:

permissions: {}

jobs:
release:
if: github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Set REPOSITORY
Expand Down

0 comments on commit ff61e44

Please sign in to comment.