Skip to content

Bump docker/build-push-action from 3 to 6 #23

Bump docker/build-push-action from 3 to 6

Bump docker/build-push-action from 3 to 6 #23

Workflow file for this run

name: publish_backend
on:
pull_request:
branches:
- main
types:
- closed
jobs:
docker:
runs-on: [self-hosted, linux, arm64]
if: github.event.pull_request.merged == true
permissions:
contents: "read"
id-token: "write"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- id: auth
name: Authenticate to Google Cloud
uses: google-github-actions/auth@v1
with:
token_format: "access_token"
workload_identity_provider: "projects/1011289596614/locations/global/workloadIdentityPools/prototype-github-ci-pool/providers/prototype-github-ci-oidc"
service_account: "prototype-github-ci-sa@ai-hospital-services-prototype.iam.gserviceaccount.com"
- name: Login to GCR
uses: docker/login-action@v2
with:
registry: asia.gcr.io
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./backend/api
push: true
tags: asia.gcr.io/ai-hospital-services-prototype/backend-api:0.4.0