2024-08-24 12:41:04 -06:00
|
|
|
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:
|
2024-08-24 16:55:04 -06:00
|
|
|
deploy-env: edge
|
2024-08-24 12:41:04 -06:00
|
|
|
infisical-token: ${{ secrets.INFISICAL_ELYSIUM_EDGE_READ_TOKEN }}
|
2024-08-24 16:51:30 -06:00
|
|
|
extra-secret-paths: /dashboard,/devops,/kubernetes
|
|
|
|
extra-secret-envs: prod,prod,prod
|
2024-08-24 12:41:04 -06:00
|
|
|
# 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
|