-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.11 KB
/
build_push_deploy.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
name: CD
on:
push:
branches:
- master
env:
PROJECT_ID: portfolio-sidd
jobs:
build-publish-deploy:
name: Setup, Build, Publish, and Deploy
runs-on: ubuntu-latest
env:
ENV: 'staging'
steps:
- name: Checkout
uses: actions/checkout@v2
# Setup gcloud CLI
- uses: google-github-actions/setup-gcloud@master
with:
version: '290.0.1'
service_account_key: ${{ secrets.GCLOUD_SA_KEY }}
project_id: portfolio-sidd
# Configure Docker to use the gcloud command-line tool as a credential
# helper for authentication
- run: |-
gcloud --quiet auth configure-docker
# Build the Docker image
- name: Build
run: |-
make build
# Push the Docker image to Google Container Registry
- name: Publish
run: |-
make push
- name: Deploy
run: |-
make deploy