-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.89 KB
/
update-digital-ocean-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
43
44
45
46
47
48
49
50
name: Update DigitalOcean Deployment
on:
push:
branches:
- main
jobs:
update-deployment:
name: Update DigitalOcean Deployment
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Inject Site Configurations
run: |
sed -i 's/dev\.comet\-dxp\.com/comet-starter-site-tyqqf.ondigitalocean.app/g' site-configs/main.ts
APP_ENV=dev npx -y @comet/cli inject-site-configs -f ../../../../../site-configs/site-configs.ts -i .digitalocean/comet-starter-cms.tpl.yaml -o .digitalocean/comet-starter-cms.yaml
APP_ENV=dev npx -y @comet/cli inject-site-configs -f ../../../../../site-configs/site-configs.ts -i .digitalocean/comet-starter-site-main.tpl.yaml -o .digitalocean/comet-starter-site-main.yaml
- name: Update DigitalOcean comet-starter-imgproxy Deployment
uses: digitalocean/app_action/deploy@v2
with:
token: ${{ secrets.DIGITALOCEAN_API_KEY }}
print_deploy_logs: true
print_build_logs: true
app_spec_location: ".digitalocean/comet-starter-imgproxy.yaml"
- name: Update DigitalOcean comet-starter-cms Deployment
uses: digitalocean/app_action/deploy@v2
with:
token: ${{ secrets.DIGITALOCEAN_API_KEY }}
print_deploy_logs: true
print_build_logs: true
app_spec_location: ".digitalocean/comet-starter-cms.yaml"
- name: Update DigitalOcean comet-starter-site-main Deployment
uses: digitalocean/app_action/deploy@v2
with:
token: ${{ secrets.DIGITALOCEAN_API_KEY }}
print_deploy_logs: true
print_build_logs: true
app_spec_location: ".digitalocean/comet-starter-site-main.yaml"