generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 880 Bytes
/
merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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:
deploys:
name: TEST
secrets: inherit
uses: ./.github/workflows/.deploy.yml
with:
tag: ${{ inputs.tag }} # Uses PR number if blank
target: test
deploy-prod:
name: PROD
if: github.base_ref == ${{ github.event.repository.default_branch }}
needs: [deploys]
secrets: inherit
uses: ./.github/workflows/.deploy.yml
with:
tag: ${{ inputs.tag }} # Uses PR number if blank
target: prod