Skip to content

Commit 930f455

Browse files
committed
GHA: Docker: deduplicate logic via "ternary operator"
1 parent a65f2d6 commit 930f455

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/workflows/docker.yml

+1-12
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,8 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
jobs:
17-
docker-release:
18-
if: github.event_name == 'release'
19-
concurrency: docker-release
20-
runs-on: ubuntu-latest
21-
22-
steps:
23-
- name: Docker image
24-
uses: Icinga/docker-icinga2@master
25-
with:
26-
dockerhub-token: '${{ secrets.DOCKER_HUB_PERSONAL_TOKEN }}'
27-
2817
docker:
29-
if: github.event_name != 'release'
18+
concurrency: docker-${{ github.event_name == 'release' && 'release' || github.ref }}
3019
runs-on: ubuntu-latest
3120

3221
steps:

0 commit comments

Comments
 (0)