Merge pull request #9625 from Icinga/buildx

GHA: handle changed interface of Icinga/docker-icinga2
This commit is contained in:
Julian Brost 2023-01-18 19:33:15 +01:00 committed by GitHub
commit dfbb1e973c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 28 deletions

View File

@ -11,7 +11,19 @@ on:
- published
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'
runs-on: ubuntu-latest
steps:
@ -24,6 +36,5 @@ jobs:
- name: Docker image
uses: Icinga/docker-icinga2@master
env:
INPUT_TOKEN: '${{ github.token }}'
DOCKER_HUB_PASSWORD: '${{ secrets.DOCKER_HUB_PERSONAL_TOKEN }}'
with:
dockerhub-token: '${{ secrets.DOCKER_HUB_PERSONAL_TOKEN }}'

View File

@ -361,31 +361,6 @@ The release body should contain a short changelog, with links
into the roadmap, changelog and blogpost.
## Docker <a id="docker"></a>
> Only for final versions (not for RCs).
Once the release has been published on GitHub, wait for its
[GitHub actions](https://github.com/Icinga/icinga2/actions) to complete.
```bash
VERSION=2.12.1
TAGS=(2.12)
#TAGS=(2.12 2 latest)
docker pull icinga/icinga2:$VERSION
for t in "${TAGS[@]}"; do
docker tag icinga/icinga2:$VERSION icinga/icinga2:$t
done
for t in "${TAGS[@]}"; do
docker push icinga/icinga2:$t
done
```
## Post Release <a id="post-release"></a>
### Online Documentation <a id="online-documentation"></a>