Release GHA: create only one Docker image at the same time

Just like in all other repos making Docker images.

The following tasks finish our ARM support and depend on each other:

* [ ] Push only one Docker image at the same time (this PR)
* [ ] GHA repo: auto-create not just X.Y.Z tags, but also X.Y, X and latest
* [ ] GHA repo: build multi-platform images

Deriving X.Y from X.Y.Z is easy. Also nobody releases a vX.Y.Z and a
vX.Y.{Z+1} at the same time. But a vX.Y.Z and a vX.{Y+1}.0 is likely.
Both check Docker Hub, both get green light and both push :latest. Who wins?
This commit is contained in:
Alexander A. Klimov 2023-08-08 18:41:24 +02:00 committed by Johannes Meyer
parent 6e16ded825
commit 783fe036f1
1 changed files with 13 additions and 1 deletions

View File

@ -10,7 +10,19 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
docker: docker-release:
if: github.event_name == 'release'
concurrency: docker-release
runs-on: ubuntu-latest
steps:
- name: Docker image
uses: Icinga/docker-icingaweb2@master
with:
dockerhub-token: '${{ secrets.DOCKER_HUB_PERSONAL_TOKEN }}'
docker:
if: github.event_name != 'release'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: