Skip to content

bugfix

bugfix #2

name: Build and Push Docker
on:
push:
branches:
- dockerize-experiments
pull_request:
branches:
- main
types: [closed]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Docker Builder
uses: docker/setup-buildx-action@v1
- name: Log in to Google Cloud Artifact Registry
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- name: Configure Docker for Google Cloud Artifact Registry
run: gcloud auth configure-docker europe-west3-docker.pkg.dev
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
push: true
tags: europe-west3-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/docker/veriflow:latest