-
Notifications
You must be signed in to change notification settings - Fork 93
74 lines (60 loc) · 2.44 KB
/
set-rollout-by-path.yaml
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
70
71
72
73
74
# This pipeline is triggered after the CDN has succeed uploading a built package
name: Set rollout by path
on: [deployment_status]
jobs:
set-rollouts:
if: ${{ github.event.deployment.task == 'upload-to-cdn' && github.event.deployment_status.state == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: hmarr/debug-action@v2
# Dev
- name: Set Rollout - Zone
if: ${{ github.event.deployment.payload.packageTag == 'next' }}
uses: decentraland/set-rollout-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Repo deployment info
ref: ${{ github.event.deployment.ref }}
sha: ${{ github.event.deployment.sha }}
# CDN information
packageName: ${{ github.event.deployment.payload.packageName }}
packageVersion: ${{ github.event.deployment.payload.packageVersion }}
# Rollout information
deploymentPath: "play"
deploymentEnvironment: "zone"
deploymentName: "@dcl/explorer"
percentage: 100
# Stg
- name: Set Rollout - Today
if: ${{ github.event.deployment.payload.packageTag == 'next' }}
uses: decentraland/set-rollout-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Repo deployment info
ref: ${{ github.event.deployment.ref }}
sha: ${{ github.event.deployment.sha }}
# CDN information
packageName: ${{ github.event.deployment.payload.packageName }}
packageVersion: ${{ github.event.deployment.payload.packageVersion }}
# Rollout information
deploymentPath: "play"
deploymentEnvironment: "today"
deploymentName: "@dcl/explorer"
percentage: 100
# Prod
- name: Set Rollout - Org
if: ${{ github.event.deployment.payload.packageTag == 'latest' }}
uses: decentraland/set-rollout-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Repo deployment info
ref: ${{ github.event.deployment.ref }}
sha: ${{ github.event.deployment.sha }}
# CDN information
packageName: ${{ github.event.deployment.payload.packageName }}
packageVersion: ${{ github.event.deployment.payload.packageVersion }}
# Rollout information
deploymentPath: "play"
deploymentEnvironment: "org"
deploymentName: "@dcl/explorer"
percentage: 0