From 642f74ac54ba044bf941d4ebcb6d3bcb48e5d80c Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Mon, 28 Jul 2025 12:41:09 +0200 Subject: [PATCH] workflows: build and publish container images --- .github/workflows/container-image.yml | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/container-image.yml diff --git a/.github/workflows/container-image.yml b/.github/workflows/container-image.yml new file mode 100644 index 000000000..18985d65b --- /dev/null +++ b/.github/workflows/container-image.yml @@ -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 }}