35 lines
No EOL
1.1 KiB
YAML
35 lines
No EOL
1.1 KiB
YAML
name: Deploy Edge
|
|
run-name: ${{ forgejo.actor }} Deploy Edge
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
# Additional Deploy Envars
|
|
GARDEN_DEPLOY_ACTION: cairo
|
|
CAIRO_ALLOW_REGISTRATION: ${{ vars.CAIRO_ALLOW_REGISTRATION }}
|
|
|
|
jobs:
|
|
deploy-edge:
|
|
steps:
|
|
# Setup Oasis
|
|
- name: Oasis Setup
|
|
uses: https://forgejo.dunemask.dev/elysium/elysium-actions@oasis-setup-auto
|
|
with:
|
|
deploy-env: edge
|
|
infisical-token: ${{ secrets.INFISICAL_ELYSIUM_EDGE_READ_TOKEN }}
|
|
extra-secret-paths: /dashboard
|
|
extra-secret-envs: edge
|
|
infisical-project: ${{ vars.INFISICAL_DEPLOYMENTS_PROJECT_ID }}
|
|
# Deploy to Edge
|
|
- name: Deploy to Edge env
|
|
run: garden deploy $GARDEN_DEPLOY_ACTION --force --force-build --env usw-edge
|
|
working-directory: ${{ env.OASIS_WORKSPACE }}
|
|
# Alert via Discord
|
|
- name: Discord Alert
|
|
if: always()
|
|
uses: https://forgejo.dunemask.dev/elysium/elysium-actions@discord-status
|
|
with:
|
|
status: ${{ job.status }}
|
|
channel: deployments
|
|
header: DEPLOY EDGE |