-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (67 loc) · 2.26 KB
/
main.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Release 1.4 CI
on:
pull_request:
branches:
- v1.4
push:
jobs:
codeql:
name: CodeQL Analysis
uses: canonical/sdcore-github-workflows/.github/workflows/codeql-analysis.yml@v0.0.3
with:
branch-name: ${{ github.ref }}
check-libraries:
uses: canonical/sdcore-github-workflows/.github/workflows/check-libraries.yaml@v0.0.3
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}
lint-report:
uses: canonical/sdcore-github-workflows/.github/workflows/lint-report.yaml@v0.0.3
with:
branch-name: ${{ github.ref }}
terraform-check:
uses: canonical/sdcore-github-workflows/.github/workflows/terraform.yaml@v0.0.3
with:
branch-name: ${{ github.ref }}
static-analysis:
uses: canonical/sdcore-github-workflows/.github/workflows/static-analysis.yaml@v0.0.3
with:
branch-name: ${{ github.ref }}
unit-tests-with-coverage:
uses: canonical/sdcore-github-workflows/.github/workflows/unit-test.yaml@v0.0.3
with:
branch-name: ${{ github.ref }}
integration-test:
uses: canonical/sdcore-github-workflows/.github/workflows/integration-test.yaml@v0.0.3
with:
branch-name: ${{ github.ref }}
charm-file-name: "sdcore-pcf-k8s_ubuntu-22.04-amd64.charm"
publish-charm:
name: Publish Charm
needs:
- lint-report
- static-analysis
- unit-tests-with-coverage
- integration-test
if: ${{ github.ref_name == 'v1.4' }}
uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@v0.0.3
with:
branch-name: ${{ github.ref_name }}
charm-file-name: "sdcore-pcf-k8s_ubuntu-22.04-amd64.charm"
track-name: 1.4
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}
publish-charm-on-push:
name: Publish Developer Charm To Branch
needs:
- lint-report
- static-analysis
- unit-tests-with-coverage
- integration-test
if: ${{ (github.ref_name != 'v1.4') && (github.event_name == 'push') }}
uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@v0.0.3
with:
branch-name: ${{ github.ref_name }}
charm-file-name: "sdcore-pcf-k8s_ubuntu-22.04-amd64.charm"
track-name: 1.4
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}