-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.07 KB
/
deploy_manual.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
# https://docs.github.com/en/actions
name: Deploy manually
on: # yamllint disable-line rule:truthy
workflow_dispatch:
inputs:
HOST:
required: true
type: choice
description: ""
options:
- production
- staging
TAG:
description: ""
required: false
type: string
BRANCH:
description: ""
required: false
default: "main"
type: string
jobs:
deploy:
if: ${{ github.event.inputs.HOST && (github.event.inputs.TAG || github.event.inputs.BRANCH) }}
uses: ./.github/workflows/deploy.yml
with:
HOST: ${{ github.event.inputs.HOST }}
TAG: ${{ github.event.inputs.TAG }}
BRANCH: ${{ github.event.inputs.BRANCH }}
secrets:
DEPLOYER_INVENTORY: ${{ secrets.DEPLOYER_INVENTORY }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
NEW_RELIC_API_KEY: ${{ secrets.NEW_RELIC_API_KEY }}