generated from HelloUnspecified/template-graph-server
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (51 loc) · 1.76 KB
/
ci_onPushMain.yml
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
name: CI on Push Master
on:
push:
branches:
- master
jobs:
build:
name: Build Sessions API for deploy
uses: thatconference/that-gh-actions/.github/workflows/build-validate-api.yml@main
with:
apiName: sessions
isForDeploy: true
branchName: ${{ github.ref_name }}
nodeVersion: 20
secrets:
SLACK_WEBHOOK_DEV_NOTIFICATIONS: ${{ secrets.SLACK_WEBHOOK_DEV_NOTIFICATIONS }}
deploy:
name: Deploy Sessions API to Google Run
needs: build
uses: thatconference/that-gh-actions/.github/workflows/deploy-api.yml@main
with:
apiName: sessions
runMemory: 512Mi
secrets:
GCLOUD_AUTH: ${{ secrets.GCLOUD_AUTH }}
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
SLACK_WEBHOOK_DEV_NOTIFICATIONS: ${{ secrets.SLACK_WEBHOOK_DEV_NOTIFICATIONS }}
redeploy-gateway:
name: Redeploy THAT Gateway container
needs: [build, deploy]
uses: thatconference/that-gh-actions/.github/workflows/redeploy-gateway.yml@main
secrets:
GCLOUD_AUTH: ${{ secrets.GCLOUD_AUTH }}
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
SLACK_WEBHOOK_DEV_NOTIFICATIONS: ${{ secrets.SLACK_WEBHOOK_DEV_NOTIFICATIONS }}
STELLATE_TOKEN: ${{ secrets.STELLATE_TOKEN }}
STELLATE_SERVICE: ${{ secrets.STELLATE_SERVICE }}
notifications:
name: Workflow notifications
needs: [build, deploy, redeploy-gateway]
runs-on: ubuntu-latest
steps:
- name: Slack Notification
uses: 8398a7/action-slack@v3
with:
fields: repo,message,commit,author,eventName,ref,workflow
status: ${{ job.status }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_DEV_NOTIFICATIONS }}
if: always()