Skip to content

Commit 375a46b

Browse files
committed
GHA: Docker: deduplicate logic via "ternary operator"
1 parent 6c03598 commit 375a46b

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
@@ -15,19 +15,8 @@ concurrency:
1515
cancel-in-progress: true
1616

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

3322
steps:

0 commit comments

Comments
 (0)