-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (28 loc) · 984 Bytes
/
build_images.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
name: "Build Docker Images"
on:
workflow_call:
secrets:
GOOGLE_APPLICATION_CREDENTIALS:
required: true
jobs:
build:
name: "Build Docker Images"
runs-on: ubuntu-latest
environment: ${GITHUB_REF##*/}
defaults:
run:
shell: bash
working-directory: ./
steps:
- name: Checkout
uses: actions/checkout@v3
- name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v1"
with:
credentials_json: "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}"
- name: "Build Extract"
run: gcloud builds submit --config=dockerfiles/cloudbuild.yml --substitutions=_IMAGE_NAME="extract" .
- name: "Build Transform"
run: gcloud builds submit --config=dockerfiles/cloudbuild.yml --substitutions=_IMAGE_NAME="transform" .
- name: "Build Load"
run: gcloud builds submit --config=dockerfiles/cloudbuild.yml --substitutions=_IMAGE_NAME="load" .