-
Notifications
You must be signed in to change notification settings - Fork 35
42 lines (35 loc) · 1.02 KB
/
publish_all.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
name: Build and publish all images to GCR
on:
push:
branches: [ master ]
workflow_dispatch:
inputs:
branch:
description: 'Branch to run the workflow on'
required: false
default: 'master'
jobs:
publish-job:
runs-on: self-hosted
steps:
- name: Checkout current code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- id: auth
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.TD_GCP_SA_KEY }}
create_credentials_file: true
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0.3.0
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: Explicitly auth Docker for GCR
run: gcloud auth configure-docker --quiet
- name: Build Docker image and publish
run: |
gcloud auth configure-docker
./build_all.sh