-
Notifications
You must be signed in to change notification settings - Fork 16
61 lines (50 loc) · 1.86 KB
/
ci.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
---
name: Continuous integration
on:
push:
env:
PROJECT: demo
# Requires CI_GPG_PRIVATE_KEY and GOPASS_CI_GITHUB_TOKEN secrets.
OPENSHIFT_PROJECT: gs-gmf-demo
HELM_RELEASE_NAMES: '2.4' # List of branch that should be deployed on helm
PATH: /bin:/usr/bin:/usr/local/bin:/home/runner/.local/bin
SUMMON_PROVIDER: /usr/local/bin/gopass
OPENSHIFT_URL: https://api.openshift-ch-1.camptocamp.com/
OPENSHIFT_RELEASE: prod-2-4 # Optional, name of the OpenShift release
jobs:
config:
runs-on: ubuntu-18.04
name: Config
timeout-minutes: 10
steps:
- uses: actions/checkout@v1
- name: Build config
run: ./docker-run make docker-build-config
- uses: camptocamp/initialise-gopass-summon-action@v1
with:
ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}}
github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}}
if: "env.HELM_RELEASE_NAMES != ''"
- run: scripts/deploy-docker --image=config --no-trigger
if: "env.HELM_RELEASE_NAMES != ''"
- run: scripts/deploy-docker --image=config --service=github
if: "env.HELM_RELEASE_NAMES != ''"
geoportal:
runs-on: ubuntu-18.04
name: Geoportal
timeout-minutes: 10
steps:
- uses: actions/checkout@v1
- name: Run checks
run: ./docker-run make checks
- name: Build geoportal
run: ./docker-run make docker-build-geoportal
- uses: camptocamp/initialise-gopass-summon-action@v1
with:
ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}}
github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}}
if: "env.HELM_RELEASE_NAMES != ''"
- run: scripts/deploy-docker --image=geoportal --no-trigger
if: "env.HELM_RELEASE_NAMES != ''"
- run: scripts/deploy-docker --image=geoportal --service=github
if: "env.HELM_RELEASE_NAMES != ''"