-
Notifications
You must be signed in to change notification settings - Fork 16
90 lines (72 loc) · 2.51 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
78
79
80
81
82
83
84
85
86
87
88
89
90
---
name: Continuous integration
on:
push:
env:
PROJECT: demo
# Requires CI_GPG_PRIVATE_KEY and GOPASS_CI_GITHUB_TOKEN secrets.
OPENSHIFT_PROJECT: gs-gmf-demo
# The release branches
HELM_RELEASE_NAMES: prod-2-6
jobs:
checks:
runs-on: ubuntu-20.04
name: Checks
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: camptocamp/initialise-gopass-summon-action@v2
with:
ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}}
github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}}
- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- run: python3 -m pip install --user --requirement=ci/requirements.txt
- name: Checks
run: c2cciutils-checks
config:
runs-on: ubuntu-20.04
name: Config
timeout-minutes: 10
needs: checks
steps:
- uses: actions/checkout@v2
- run: touch env.secrets
- run: sed -i '/^DOCKER_TAG=/d' env.project
- name: Build config
run: ./build --simple --config
- uses: camptocamp/initialise-gopass-summon-action@v2
with:
ci-gpg-private-key: ${{ secrets.CI_GPG_PRIVATE_KEY }}
github-gopass-ci-token: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}
patterns: docker
- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- run: python3 -m pip install --user --requirement=ci/requirements.txt
- name: Publish
run: c2cciutils-publish --group=config
- run: ci/trigger --image=config
geoportal:
runs-on: ubuntu-20.04
name: Geoportal
timeout-minutes: 10
needs: checks
steps:
- uses: actions/checkout@v1
- run: touch env.secrets
- name: Build geoportal
run: ./build --geoportal
if: hashFiles('geoportal/Dockerfile') != ''
- uses: camptocamp/initialise-gopass-summon-action@v2
with:
ci-gpg-private-key: ${{ secrets.CI_GPG_PRIVATE_KEY }}
github-gopass-ci-token: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}
patterns: docker
if: hashFiles('geoportal/Dockerfile') != ''
- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
if: hashFiles('geoportal/Dockerfile') != ''
- run: python3 -m pip install --user --requirement=ci/requirements.txt
if: hashFiles('geoportal/Dockerfile') != ''
# - name: Publish
# run: c2cciutils-publish --group=geoportal
# if: hashFiles('geoportal/Dockerfile') != ''
# - run: ci/trigger --image=geoportal
# if: hashFiles('geoportal/Dockerfile') != ''