redjubjub/.github/workflows/main.yml

25 lines
676 B
YAML

name: CI
on: [push]
jobs:
build:
name: Google Cloud Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# - run:
- name: Authenticate w/ Google Cloud
uses: actions/gcloud/auth@master
env:
GCLOUD_AUTH: ${{ secrets.GCLOUD_AUTH }}
- name: Build, Test, Push to GCR
uses: actions/gcloud/cli@master
with:
entrypoint: bash
args: |
-l -c "BRANCH_NAME=$GITHUB_REPOSITORY/$(expr $GITHUB_REF : '.*/\(.*\)') && \
BRANCH_NAME=${BRANCH_NAME,,} && \
gcloud builds submit . --config cloudbuild.yaml --project zealous-zebra --substitutions BRANCH_NAME=$BRANCH_NAME"