Skip to content

chore: add labels for renovate pull requests (#524) #142

chore: add labels for renovate pull requests (#524)

chore: add labels for renovate pull requests (#524) #142

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"