-
Notifications
You must be signed in to change notification settings - Fork 22
46 lines (42 loc) · 1.15 KB
/
release.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
44
45
46
---
# yamllint disable rule:truthy
name: New Release
on:
push:
tags:
- 'infrahub-v*'
- '!infrahub-v*-*'
jobs:
meta_data:
runs-on: ubuntu-22.04
outputs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
steps:
- name: Set docker image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ vars.HARBOR_HOST }}/${{ github.repository }}
tags: |
type=match,pattern=infrahub-v(\d+\.\d+\.\d+),group=1
type=match,pattern=infrahub-v(\d+\.\d+),group=1
type=raw,value=stable
labels: |
org.opencontainers.image.source=${{ github.repository }}
publish-docker-image:
uses: ./.github/workflows/ci-docker-image.yml
secrets: inherit
needs: meta_data
with:
publish: true
version: ${{ github.ref_name }}
ref: ${{ github.sha }}
tags: ${{ needs.meta_data.outputs.tags }}
labels: ${{ needs.meta_data.outputs.labels }}
publish-helm-chart:
uses: ./.github/workflows/publish-helm-chart.yml
secrets: inherit
with:
publish: true