workflows: build and publish container images

This commit is contained in:
Yonas Habteab 2025-07-28 12:41:09 +02:00
parent 6ec0609dc1
commit 642f74ac54

32
.github/workflows/container-image.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Container Image
on:
push:
branches:
- master
pull_request: {}
release:
types:
- published
concurrency:
group: container-image-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: true
jobs:
container-image:
# Required by the base Container Image Action [^1].
# [^1]: https://github.com/Icinga/github-actions/blob/main/.github/workflows/container-image.yml#L54-L58
permissions:
contents: read
packages: write
attestations: write
id-token: write
name: Container Image
uses: icinga/github-actions/.github/workflows/container-image.yml@main
with:
documentation_url: https://icinga.com/docs/icinga2
secrets:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}