feat: 835 development of seedlot review step 7 parent tree contributi… #414
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- '*.md' | |
- '.github/**' | |
- '.github/graphics/**' | |
- '!.github/workflows/**' | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: "Container tag; e.g. PR number or latest" | |
type: string | |
default: latest | |
concurrency: | |
# Do not interrupt previous workflows | |
group: ${{ github.workflow }} | |
cancel-in-progress: false | |
jobs: | |
init: | |
name: Initialize | |
outputs: | |
pr: ${{ steps.pr.outputs.pr }} | |
runs-on: ubuntu-latest | |
steps: | |
# Get PR number for squash merges to main | |
- name: PR Number | |
id: pr | |
uses: bcgov-nr/[email protected] | |
deploys: | |
name: TEST | |
needs: [init] | |
secrets: inherit | |
uses: ./.github/workflows/.deploy.yml | |
with: | |
environment: test | |
tag: ${{ inputs.tag || needs.init.outputs.pr }} | |
target: test | |
fluentbit_target: test | |
deploy-prod: | |
name: PROD | |
needs: [init, deploys] | |
secrets: inherit | |
uses: ./.github/workflows/.deploy.yml | |
with: | |
environment: prod | |
tag: ${{ inputs.tag || needs.init.outputs.pr }} | |
target: prod | |
fluentbit_target: production |