-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.03 KB
/
preproduction.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
name: Preproduction
on:
push:
branches:
- "master"
tags-ignore:
- v*
concurrency:
cancel-in-progress: true
group: preproduction
jobs:
register-app:
name: Build & Register app
runs-on: ubuntu-latest
steps:
- name: Use autodevops build and register
uses: SocialGouv/actions/autodevops-build-register@v1
with:
environment: preprod
imagePackage: app
token: ${{ secrets.GITHUB_TOKEN }}
deploy:
name: Deploy preproduction
runs-on: ubuntu-latest
needs: [register-app]
environment:
name: preproduction
url: https://doc-demo-app-v2-preprod.dev.fabrique.social.gouv.fr/
steps:
- name: Use kube-workflow deployment
uses: SocialGouv/kube-workflow@master
with:
environment: preprod
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }}
rancherProjectName: ${{ secrets.RANCHER_PROJECT_NAME }}