-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.1 KB
/
push-main-release.yaml
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
---
name: "Push to main: Release"
concurrency:
group: container-release
cancel-in-progress: false
on:
push:
branches:
- main
paths:
- "apps/**"
- ".ci/templates/**"
jobs:
lint:
name: Lint
uses: ./.github/workflows/workflow_call-lint.yaml
get-changed-images:
name: Get changed images
needs:
- lint
uses: ./.github/workflows/workflow_call-get_changed_images.yaml
build-images:
name: Build images
needs:
- lint
- get-changed-images
if: ${{ needs.get-changed-images.outputs.addedOrModified == 'true' }}
uses: ./.github/workflows/workflow_call-build_images.yaml
permissions:
contents: read
packages: write
with:
appsToBuild: "${{ needs.get-changed-images.outputs.addedOrModifiedImages }}"
pushImages: true
sendNotifications: true
render-readme:
name: Render Readme
permissions:
contents: write
needs:
- build-images
if: ${{ always() && needs.build-images.result != 'failure' }}}
uses: ./.github/workflows/workflow_call-render-readme.yaml
secrets: inherit