generated from well-known-components/template-server
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.16 KB
/
manual-deployment.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
name: Manual deployment
on:
workflow_dispatch:
inputs:
service-name:
required: true
type: choice
options:
- realm-provider
- realm-provider-ea
default: realm-provider
description: Service name
deployment-environment:
required: true
type: choice
options:
- prd
- dev
default: prd
description: Environment
tag:
required: true
default: 'latest'
type: string
description: 'Docker tag (quay.io)'
jobs:
deployment:
if: ${{ inputs.deployment-environment }} && ${{ inputs.service-name }}
name: 'Deploy ${{ inputs.service-name }} to: ${{ inputs.deployment-environment }}'
runs-on: ubuntu-latest
environment: ${{ inputs.deployment-environment }}
steps:
- name: Trigger deployment
id: deploy
uses: decentraland/dcl-deploy-action@main
with:
dockerImage: 'quay.io/decentraland/realm-provider:${{ inputs.tag }}'
serviceName: ${{ inputs.service-name }}
env: ${{ inputs.deployment-environment }}
token: ${{ secrets.GITHUB_TOKEN }}