-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.01 KB
/
api2.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
name: API2 Build & Deploy
on:
push:
paths:
- '.github/workflows/api2.yml'
- 'api_2/**'
- '!api_2/README.md'
jobs:
build-api2:
name: "Build/Push Docker Image (API2)"
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build-docker-image
with:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
GCP_PROJECT_ID: silken-phalanx-305703
CONTAINER_REPO: gcr.io/silken-phalanx-305703/snap-api2
DOCKER_CONTEXT: api_2
deploy-development-api2:
name: "[D] Deploy API2"
needs: build-api2
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev'
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/deploy-api2
with:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
GCP_PROJECT_ID: silken-phalanx-305703
CONTAINER_REPO: gcr.io/silken-phalanx-305703/snap-api2
# big ball energy