Skip to content

Merge pull request #31 from opentargets/il-automate-docker #1

Merge pull request #31 from opentargets/il-automate-docker

Merge pull request #31 from opentargets/il-automate-docker #1

Workflow file for this run

name: Build and Push Docker Images to Artifact Registry
on:
push:
branches:
- master
tags:
- "*"
env:
PROJECT_ID: open-targets-eu-dev
REGION: europe-west1
GAR_LOCATION: europe-west1-docker.pkg.dev/open-targets-eu-dev/ot-release-metrics
jobs:
build-push-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Authenticate with Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.SERVICE_ACCOUNT_KEY }}
- name: Configure Docker for Google Artifact Registry
run: gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet
- name: Set up QEMU for Multi-Architecture Builds
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Push Metric Calculation Image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
push: true
tags: ${{ env.GAR_LOCATION }}/metric-calculation:latest
context: .
file: metric-calculation/Dockerfile
- name: Build and Push Streamlit App Image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
push: true
tags: ${{ env.GAR_LOCATION }}/app:latest
context: .
file: streamlit-app/Dockerfile