-
Notifications
You must be signed in to change notification settings - Fork 18
80 lines (78 loc) · 2.51 KB
/
release.yml
File metadata and controls
80 lines (78 loc) · 2.51 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
name: Release
on: # yamllint disable-line rule:truthy
push:
tags:
- "v*"
jobs:
containers:
name: Push container images to Docker Hub
runs-on: ubuntu-latest
strategy:
matrix:
include:
- component: api_server
context:
file: components/api_server/Dockerfile
- component: collector
context:
file: components/collector/Dockerfile
- component: database
context: components/database
file:
- component: frontend
context: components/frontend
file:
- component: notifier
context:
file: components/notifier/Dockerfile
- component: proxy
context: components/proxy
file:
- component: renderer
context: components/renderer
file:
steps:
- name: Checkout code
uses: actions/checkout@v6.0.2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4.0.0
- name: Login to DockerHub
uses: docker/login-action@v4.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push ${{ matrix.component }} to Docker Hub
uses: docker/build-push-action@v7.0.0
with:
context: ${{ matrix.context }}
file: ${{ matrix.file }}
platforms: linux/amd64,linux/arm64
tags: ictu/quality-time_${{ matrix.component }}:${{ github.ref_name }}
sbom: true
push: true
provenance: mode=max
finalize:
name: Finalize release
needs: containers
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6.0.2
- name: Login to DockerHub
uses: docker/login-action@v4.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Helm chart to Docker Hub
working-directory: helm
run: |
helm package .
helm push quality-time-*.tgz oci://registry-1.docker.io/ictu
- name: Generate changes for this release
run: tools/release/latest_release_changelog.py docs/src/changelog.md > ${{ github.workspace }}-CHANGELOG.txt
- name: Create GitHub release
uses: softprops/action-gh-release@v2.6.1
with:
prerelease: ${{ contains(github.ref_name, 'rc') }}
body_path: ${{ github.workspace }}-CHANGELOG.txt