-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.11 KB
/
_skaffold-build-k8s.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
name: 'Skaffold Build'
on:
workflow_call:
inputs:
default_image_repo:
description: 'Default image repo'
required: false
type: string
default: "us-docker.pkg.dev/jax-cs-registry/docker/geneweaver"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Skaffold
run: |
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 && \
sudo install skaffold /usr/local/bin/
- name: Authenticate to Google Cloud
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GCLOUD_REGISTRY_SA_KEY }}'
- name: Docker Login
run: gcloud auth configure-docker us-docker.pkg.dev,us-east1-docker.pkg.dev
- name: Build
run: |
skaffold build \
--default-repo=${{ inputs.default_image_repo }} \
--file-output=build.json
- name: Upload Build Artifact Information
uses: actions/upload-artifact@v3
with:
name: build-artifact-json
path: build.json