mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-31 01:24:19 +02:00
workflows: build and publish container images
This commit is contained in:
parent
6ec0609dc1
commit
642f74ac54
32
.github/workflows/container-image.yml
vendored
Normal file
32
.github/workflows/container-image.yml
vendored
Normal 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 }}
|
Loading…
x
Reference in New Issue
Block a user