Skip to content

Merge pull request #12 from dunzoit/hotfix/fix-notfication-destination #11

Merge pull request #12 from dunzoit/hotfix/fix-notfication-destination

Merge pull request #12 from dunzoit/hotfix/fix-notfication-destination #11

Workflow file for this run

name: Build custom redash image
on:
push:
tags:
- '*'
jobs:
deploy:
permissions:
contents: 'read'
id-token: 'write'
environment:
name: Prod
url: "app.{{ vars.BASE_DOMAIN }}"
runs-on: ubuntu-latest
env:
REGISTRY_REGION: asia-south1-docker.pkg.dev
IMAGE_NAME: asia-south1-docker.pkg.dev/prod-data-platform/redash/redash
steps:
- uses: actions/checkout@v3
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: 'projects/1027534050611/locations/global/workloadIdentityPools/github-pool/providers/github'
service_account: 'prod-data-eng-deployment@prod-data-platform.iam.gserviceaccount.com'
token_format: 'access_token'
- uses: 'docker/login-action@v1'
with:
registry: ${{ env.REGISTRY_REGION }}
username: 'oauth2accesstoken'
password: '${{ steps.auth.outputs.access_token }}'
- uses: olegtarasov/get-tag@v2.1
id: tag_name
- # Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
platforms: linux/amd64
tags: "${{ env.IMAGE_NAME }}:${{ steps.tag_name.outputs.tag }}"
cache-from: type=gha
cache-to: type=gha,mode=max