-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (60 loc) · 1.37 KB
/
pipeline.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
59
60
61
62
63
64
65
66
67
68
69
name: Pipeline
on:
workflow_dispatch:
inputs:
version:
description: Version
required: true
registry_package:
types:
- published
env:
version: ${{ inputs.version || github.event.registry_package.package_version.version }}
permissions:
contents: read
jobs:
deploy-to-dev:
uses: ./.github/workflows/deploy.yml
secrets: inherit
with:
environment: dev
version: ${{ env.version }}
deploy-to-test:
needs: deploy-to-dev
uses: ./.github/workflows/deploy.yml
secrets: inherit
with:
environment: test
version: ${{ env.version }}
deploy-to-stage:
needs: deploy-to-dev
uses: ./.github/workflows/deploy.yml
secrets: inherit
with:
environment: stage
version: ${{ env.version }}
deploy-to-preprod:
needs:
- deploy-to-stage
- deploy-to-test
uses: ./.github/workflows/deploy.yml
secrets: inherit
with:
environment: preprod
version: ${{ env.version }}
deploy-to-training:
needs:
- deploy-to-stage
- deploy-to-test
uses: ./.github/workflows/deploy.yml
secrets: inherit
with:
environment: training
version: ${{ env.version }}
deploy-to-prod:
needs: deploy-to-preprod
uses: ./.github/workflows/deploy.yml
secrets: inherit
with:
environment: prod
version: ${{ env.version }}