-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.24 KB
/
cd.yaml
File metadata and controls
46 lines (42 loc) · 1.24 KB
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
name: CD
on:
push:
tags:
- "*"
jobs:
build:
uses: ubio/github-actions/.github/workflows/ci-build.yaml@master
with:
name: EXPERIMENTAL Dynamic Node Server
image: gcr.io/automation-cloud-registry/experimental-dynamic-node-server
ref: ${{ github.ref }}
file: Dockerfile
secrets:
REGISTRY_SECRET: ${{ secrets.GCP_REGISTRY_ACCESS }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
deploy-staging:
needs: build
uses: ubio/github-actions/.github/workflows/cd-dispatch-deploy.yaml@master
with:
gh_user: ubio
gh_repo: infrastructure
image_name: ns-nodejs-server
env_name: staging
app_path: automation-cloud/ns-nodejs-server
auto_merge: true
secrets:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
deploy-production:
needs: build
uses: ubio/github-actions/.github/workflows/cd-dispatch-deploy.yaml@master
with:
gh_user: ubio
gh_repo: infrastructure
image_name: ns-nodejs-server
env_name: production
app_path: automation-cloud/ns-nodejs-server
auto_merge: false
pr_assignees: ${{ github.actor }}
secrets:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}