Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-web-app
IMAGE_TAG: ${{ github.event.inputs.version}}
GCP_REGISTRY: europe-west2-docker.pkg.dev
GCP_IMAGE_NAME: prj-c-prd-infra-cicd-iytq/ar-c-prd-euwe2-docker/open-banking-connector-web-app

jobs:

Expand All @@ -20,6 +22,7 @@ jobs:

permissions:
contents: read
id-token: write
packages: write

steps:
Expand All @@ -33,11 +36,28 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v2
Comment thread
DanJakeNeal marked this conversation as resolved.
with:
token_format: access_token
workload_identity_provider: ${{ secrets.WIF_PROVIDER_NAME }}
service_account: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}

- name: Log in to Artifact Registry
uses: docker/login-action@v3
Comment thread
DanJakeNeal marked this conversation as resolved.
with:
registry: ${{ env.GCP_REGISTRY }}
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
${{ env.GCP_REGISTRY }}/${{ env.GCP_IMAGE_NAME }}
tags: |
type=semver,pattern={{version}},value=${{ env.IMAGE_TAG }}
labels: |
Expand Down