Repository navigation
53 lines (51 loc) · 1.6 KB
/
Copy pathdeploy-dev.yaml
File metadata and controls
53 lines (51 loc) · 1.6 KB
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
name: Deploy to Dev
on:
workflow_dispatch:
inputs:
restart:
description: 'Restart the component after deploying'
type: boolean
default: false
harper_version:
description: 'Harper major version running on the target CM'
type: choice
default: v5
options:
- v4
- v5
push:
branches:
- dev
concurrency:
group: dev
cancel-in-progress: false
jobs:
deployToDev:
name: Deploy to Dev
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
fetch-tags: true
# Nothing here pushes; don't leave the token in `.git/config`.
persist-credentials: false
- name: Verify
uses: ./.github/actions/studio-verify
with:
environment: dev
- name: Build and deploy
uses: ./.github/actions/studio-deploy
with:
environment: dev
sourcemap-url-prefix: https://dev.studio.harperfabric.com/assets
# This literal, not the dispatch input, is what the CM runs — .github/deploying.md.
harper-version: ${{ inputs.harper_version || 'v5' }}
restart: ${{ inputs.restart || false }}
datadog-api-key: ${{ secrets.DATADOG_API_KEY }}
cli-target-username: ${{ secrets.CLI_TARGET_USERNAME_DEV }}
cli-target-password: ${{ secrets.HARPERDB_CLI_TARGET_PASSWORD_DEV }}
cli-deploy-target: ${{ secrets.CLI_DEPLOY_TARGET_DEV }}