-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (39 loc) · 1.15 KB
/
container.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Create and publish container image
on:
push:
branches:
- 'main'
tags:
- 'v[0-9]+.[0-9]+.[0-9]'
- 'v[0-9]+.[0-9]+.[0-9]-**'
jobs:
call_build-and-push-image_nightly:
if: startsWith(github.ref, 'refs/heads/')
permissions:
contents: read
packages: write
uses: ./.github/workflows/docker-build-push-matrix.yml
with:
image-tags: nightly
secrets:
registry-pass: ${{ secrets.GITHUB_TOKEN }}
call_build-and-push-image_prerelease:
if: ${{ startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') }}
permissions:
contents: read
packages: write
uses: ./.github/workflows/docker-build-push-matrix.yml
with:
image-tags: ${{ github.ref_name }}
secrets:
registry-pass: ${{ secrets.GITHUB_TOKEN }}
call_build-and-push-image_release:
if: ${{ startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') }}
permissions:
contents: read
packages: write
uses: ./.github/workflows/docker-build-push-matrix.yml
with:
image-tags: ${{ github.ref_name }} latest
secrets:
registry-pass: ${{ secrets.GITHUB_TOKEN }}