-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bfa06c
commit fcd9792
Showing
2 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Set rollout by path - Manual | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
packageVersion: | ||
description: 'NPM Version of the release (@dcl/explorer-website)' | ||
required: true | ||
default: '' | ||
deploymentEnvironment: | ||
type: 'choice' | ||
description: 'Deployment environment' | ||
required: true | ||
default: 'zone' | ||
options: | ||
- zone | ||
- today | ||
- org | ||
rolloutPercentage: | ||
description: 'The percentage for this rollout' | ||
required: true | ||
default: '100' | ||
|
||
jobs: | ||
set-manual-by-path-rollout: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hmarr/debug-action@v2 | ||
- name: Set Rollout | ||
uses: decentraland/set-rollout-action@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Repo deployment info | ||
ref: ${{ github.event.ref }} | ||
sha: ${{ github.sha }} | ||
|
||
# CDN information | ||
packageName: '@dcl/explorer-website' | ||
packageVersion: ${{ github.event.inputs.packageVersion }} | ||
|
||
# Rollout information | ||
deploymentPath: 'play' | ||
deploymentEnvironment: ${{ github.event.inputs.deploymentEnvironment }} | ||
deploymentName: '_site' | ||
percentage: ${{ github.event.inputs.rolloutPercentage }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Set rollout by path | ||
|
||
on: [deployment_status] | ||
|
||
jobs: | ||
set-rollout: | ||
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 - Development | ||
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: '_site' | ||
percentage: 100 | ||
|
||
# Stg | ||
- name: Set Rollout - Staging | ||
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: '_site' | ||
percentage: 100 |