-
Notifications
You must be signed in to change notification settings - Fork 51
103 lines (94 loc) · 2.97 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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: "Release"
on:
release:
types: [published]
push:
branches: [main]
tags:
- "v*"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
file-changes:
name: file-changes
uses: ./.github/workflows/checks.yml
secrets: inherit
lint:
name: lint
needs: file-changes
uses: ./.github/workflows/lint.yml
secrets: inherit
with:
web: true
python: false
release-docker-web:
needs: [file-changes, lint]
if: needs.file-changes.outputs.web == 'true' || startsWith(github.ref, 'refs/tags/v')
uses: goat-community/.github/.github/workflows/reusable-docker-build.yml@main
permissions:
contents: read
packages: write
pull-requests: write
with:
dockerhub-enable: false
ghcr-enable: true
push: ${{ github.event_name != 'pull_request' }}
file: ./apps/web/Dockerfile
image-names: |
ghcr.io/${{ github.repository }}/web
release-docker-geoapi:
needs: [file-changes, lint]
if: needs.file-changes.outputs.geoapi == 'true' ||
startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/reusable-docker-build.yml
permissions:
contents: read
packages: write
pull-requests: write
with:
dockerhub-enable: false
ghcr-enable: true
push: ${{ github.event_name != 'pull_request' }}
file: ./apps/geoapi/Dockerfile
platforms: linux/amd64,linux/arm64
image-name: ghcr.io/${{ github.repository }}/geoapi
release-docker-storybook:
needs: [file-changes, lint]
if: needs.file-changes.outputs.storybook == 'true' || startsWith(github.ref, 'refs/tags/v')
uses: goat-community/.github/.github/workflows/reusable-docker-build.yml@main
permissions:
contents: read
packages: write
pull-requests: write
with:
dockerhub-enable: false
ghcr-enable: true
push: ${{ github.event_name != 'pull_request' }}
file: ./apps/storybook/Dockerfile
image-names: |
ghcr.io/${{ github.repository }}/storybook
release-docker-docs:
needs: [file-changes, lint]
if: needs.file-changes.outputs.docs == 'true' || startsWith(github.ref, 'refs/tags/v')
uses: goat-community/.github/.github/workflows/reusable-docker-build.yml@main
permissions:
contents: read
packages: write
pull-requests: write
with:
dockerhub-enable: false
ghcr-enable: true
push: ${{ github.event_name != 'pull_request' }}
file: ./apps/docs/Dockerfile
image-names: |
ghcr.io/${{ github.repository }}/docs
release-keycloak-theme:
needs: [file-changes, lint]
if: needs.file-changes.outputs.keycloak-theme == 'true' || startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/keycloak-build.yml
secrets: inherit
with:
keycloak-theme-artifact-id: "p4b-keyclok-theme-${{ needs.file-changes.outputs.sha-short}}"
push: true