Skip to content

Deploy mdragon/2938-metabase-workflow to Metabase nonprod #2

Deploy mdragon/2938-metabase-workflow to Metabase nonprod

Deploy mdragon/2938-metabase-workflow to Metabase nonprod #2

Workflow file for this run

name: Deploy Metabase
run-name: Deploy ${{ github.ref_name }} to Metabase ${{ inputs.environment || (github.event_name == 'release' && 'prod') || 'nonprod'}}
on:
push:
branches:
- "mdragon/2938-metabase-workflow"
paths:
- ".github/workflows/cd-metabase.yml"
- "Makefile"
workflow_dispatch:
inputs:
environment:
description: "target environment"
required: true
default: "dev"
type: choice
options:
- dev
- staging
- prod
image-tag:
description: "Metabase enterprise image tag to deploy"
required: true
type: string
jobs:
deploy:
name: Deploy
uses: ./.github/workflows/deploy-metabase.yml
strategy:
max-parallel: 1
fail-fast: false
matrix:
envs: ${{ github.event_name == 'release' && fromJSON('["prod"]') || github.ref_name == 'main' && fromJSON('["dev", "staging"]') || fromJSON('["dev"]') }}
with:
version: latest
environment: ${{ matrix.envs }}