Skip to content

Commit

Permalink
GHA: Docker: deduplicate logic via "ternary operator"
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Apr 3, 2024
1 parent d551eae commit d008967
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,8 @@ concurrency:
cancel-in-progress: true

jobs:
docker-release:
if: github.event_name == 'release'
concurrency: docker-release
runs-on: ubuntu-latest

steps:
- name: Docker image
uses: Icinga/docker-icinga2@master
with:
dockerhub-token: '${{ secrets.DOCKER_HUB_PERSONAL_TOKEN }}'

docker:
if: github.event_name != 'release'
concurrency: docker-${{ github.event_name == 'release' && 'release' || github.ref }}
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit d008967

Please sign in to comment.