Skip to content

Update Docker image path in Prod CI/CD workflow #2

Update Docker image path in Prod CI/CD workflow

Update Docker image path in Prod CI/CD workflow #2

Workflow file for this run

name: gol2
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.meta.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: europe-west9-docker.pkg.dev/gol2-production/gol2-indexer/dev
flavor: latest=false
tags: |
type=ref,event=tag
- uses: 'google-github-actions/auth@v2'
id: auth
with:
token_format: access_token
project_id: 'gol2-production'
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS_PROD }}'
- name: Login to GAR
uses: docker/login-action@v3
with:
registry: europe-west9-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}
- name: Build and push
uses: docker/build-push-action@v5
with:
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}