Merge branch 'main' into kvg_improved_build #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Continuous integration test of any branch. | |
name: CI | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
# Build Docker image | |
build_docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Work around permissions issue | |
run: git config --global --add safe.directory /__w/hidive/hidive | |
- uses: 'actions/checkout@v2' | |
- id: 'auth' | |
name: 'Authenticate to Google Cloud' | |
uses: 'google-github-actions/auth@v0' | |
with: | |
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' | |
- name: Image | |
run: |- | |
TAG=$(git rev-parse --abbrev-ref HEAD) | |
cd docker | |
docker build --build-arg branch=$TAG -t us.gcr.io/broad-dsp-lrma/lr-hidive:$TAG . | |
gcloud auth configure-docker -q | |
docker push -q us.gcr.io/broad-dsp-lrma/lr-hidive:$TAG |