-
Notifications
You must be signed in to change notification settings - Fork 93
65 lines (54 loc) · 2.35 KB
/
set-rollout.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
# This pipeline is triggered after the CDN has succeed uploading a built package
name: Set delivery rollout
on: [deployment_status]
jobs:
set-rollouts-automatic:
if: ${{ github.event.deployment.task == 'upload-to-cdn' && github.event.deployment_status.state == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: hmarr/debug-action@v2
- name: set-rollout-zone
if: ${{ github.event.deployment.payload.packageTag == 'next' }}
uses: decentraland/set-rollout-action@main
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
deploymentDomain: "play.decentraland.zone"
deploymentName: "@dcl/explorer"
percentage: 100
- name: set-rollout-today
if: ${{ github.event.deployment.payload.packageTag == 'next' }}
uses: decentraland/set-rollout-action@main
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
deploymentDomain: "play.decentraland.today"
deploymentName: "@dcl/explorer"
percentage: 100
- name: set-rollout-org
if: ${{ github.event.deployment.payload.packageTag == 'latest' }}
uses: decentraland/set-rollout-action@main
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
deploymentDomain: "play.decentraland.org"
deploymentName: "@dcl/explorer"
percentage: 0