forked from ultrasoundmoney/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.55 KB
/
deploy-prod.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
name: deploy-prod
on:
push:
tags:
- "prod-*"
jobs:
wait-on-build:
name: wait on build
runs-on: ubuntu-latest
steps:
- name: Wait for build to succeed
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: build
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
make-sentry-release:
name: make sentry release
runs-on: ubuntu-latest
needs: wait-on-build
steps:
- uses: actions/checkout@v2
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ultrasoundmoney
SENTRY_PROJECT: ultrasoundmoney
with:
environment: prod
deploy-serve-frontend:
name: deploy serve-frontend
runs-on: ubuntu-latest
needs: wait-on-build
steps:
- uses: actions/checkout@master
- name: Make short SHA available
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: deploy
uses: steebchen/[email protected]
with:
config: ${{ secrets.KUBE_CONFIG_DATA_PROD }}
command: set image deployment/serve-frontend serve-frontend=rg.fr-par.scw.cloud/ultrasoundmoney/frontend:${{ steps.vars.outputs.sha_short }}
- name: Verify deployment
uses: steebchen/[email protected]
with:
config: ${{ secrets.KUBE_CONFIG_DATA_PROD }}
command: rollout status deployment/serve-frontend