2020-06-19 14:22:06 +02:00
|
|
|
name: Docker image
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request: {}
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-10-13 18:25:47 +02:00
|
|
|
- 'support/*'
|
2020-06-19 14:22:06 +02:00
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- published
|
|
|
|
|
2023-01-19 10:47:14 +01:00
|
|
|
concurrency:
|
2023-11-17 15:54:03 +01:00
|
|
|
group: docker-${{ github.event_name == 'push' && github.sha || github.ref }}
|
2023-01-19 10:47:14 +01:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-06-19 14:22:06 +02:00
|
|
|
jobs:
|
2023-01-05 17:34:16 +01:00
|
|
|
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 }}'
|
|
|
|
|
2020-06-19 14:22:06 +02:00
|
|
|
docker:
|
2023-01-05 17:34:16 +01:00
|
|
|
if: github.event_name != 'release'
|
2020-06-19 14:22:06 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Docker image
|
|
|
|
uses: Icinga/docker-icinga2@master
|
2023-01-05 17:34:16 +01:00
|
|
|
with:
|
|
|
|
dockerhub-token: '${{ secrets.DOCKER_HUB_PERSONAL_TOKEN }}'
|