-
Notifications
You must be signed in to change notification settings - Fork 11
55 lines (49 loc) · 1.59 KB
/
on-push-main-branch.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
51
52
53
54
55
name: "Push to main branch"
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- "CHANGELOG.md"
jobs:
codeql:
uses: ./.github/workflows/codeql.yaml
tests:
uses: ./.github/workflows/tests.yaml
generate-changelog:
needs: tests
uses: ./.github/workflows/generate-changelog.yaml
docs:
needs: generate-changelog
uses: ./.github/workflows/publish-docs.yaml
with:
message: "Warning: This is the development version."
publish-latest:
needs: tests
uses: ./.github/workflows/publish-image.yaml
with:
image-tags: latest
oauth-redirect-url: "https://proxy-template-fastapi-react-test.playground.radix.equinor.com/"
# FIXME: DEMO CURRENTLY NOT DEPLOYED TO RADIX, comment back in to enable deployment to test environment
# deploy-test:
# needs: publish-latest
# uses: ./.github/workflows/deploy-to-radix.yaml
# with:
# radix-environment: "test"
release-please:
needs: tests
uses: ./.github/workflows/create-release-pr.yaml
publish-production:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
uses: ./.github/workflows/publish-image.yaml
with:
image-tags: production,${{ needs.release-please.outputs.tag_name }}
oauth-redirect-url: "https://template-fastapi-react.app.playground.radix.equinor.com"
# FIXME: DEMO CURRENTLY NOT DEPLOYED TO RADIX, comment back in to enable deployment to production environment
# deploy-prod:
# needs: publish-production
# uses: ./.github/workflows/deploy-to-radix.yaml
# with:
# radix-environment: "prod"