-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (49 loc) · 1.43 KB
/
deploy-new-version.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Deploy New Version
run-name: New deployment for "${{ github.ref_name }}" triggered by ${{ github.actor }}
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- workflows
workflow_dispatch:
inputs:
version:
description: 'Enter the version number'
required: true
default: 'latest'
jobs:
ReuseableMatrixJobForDeployment:
strategy:
matrix:
build-type: [production, staging]
include:
- build-type: production
tag_suffix: prod
environment: production-fidl
- build-type: staging
tag_suffix: stg
environment: staging-fidl
uses: ./.github/workflows/release-new-version.yml
with:
stage: ${{ matrix.build-type }}
tag_suffix: ${{ matrix.tag_suffix }}
environment: ${{ matrix.environment }}
secrets: inherit
# reuseable-matrix-job:
# strategy:
# matrix:
# build-type: [production, staging]
# include:
# - build-type: production
# tag_suffix: prod
# environment: production-fidl
# - build-type: staging
# tag_suffix: stg
# environment: staging-fidl
# uses: ./.github/workflows/release-new-version.yml
# with:
# stage: ${{ matrix.build-type }}
# tag_suffix: ${{ matrix.tag_suffix }}
# environment: ${{ matrix.environment }}
# secrets: inherit