Skip to content

Commit 5ffdb7d

Browse files
committed
workflows: build and publish container images
1 parent bdfdc7e commit 5ffdb7d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Container Image
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request: {}
8+
release:
9+
types:
10+
- published
11+
12+
concurrency:
13+
group: container-image-${{ github.event_name == 'push' && github.sha || github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
container-image:
18+
# Required by the base Container Image Action [^1].
19+
# [^1]: https://github.com/Icinga/github-actions/blob/main/.github/workflows/container-image.yml#L54-L58
20+
permissions:
21+
contents: read
22+
packages: write
23+
attestations: write
24+
id-token: write
25+
26+
name: Container Image
27+
uses: icinga/github-actions/.github/workflows/container-image.yml@main
28+
with:
29+
documentation_url: https://icinga.com/docs/icinga2
30+
secrets:
31+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
32+
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}

0 commit comments

Comments
 (0)