All checks were successful
Deploy USW-MC / deploy-edge (push) Successful in 2m3s
44 lines
No EOL
1.7 KiB
YAML
44 lines
No EOL
1.7 KiB
YAML
name: Deploy USW-MC
|
|
run-name: ${{ forgejo.actor }} Deploy USW-MC
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
GARDEN_DEPLOY_ACTION: minecluster
|
|
|
|
jobs:
|
|
deploy-edge:
|
|
steps:
|
|
# Configure proper kubeconfig (Used when cluster does not match the edge environment)
|
|
# - name: Get usw-mc deployment kubeconfig
|
|
# uses: https://forgejo.dunemask.dev/elysium/elysium-actions@infisical-env
|
|
# with:
|
|
# infisical-token: ${{ secrets.INFISICAL_ELYSIUM_EDGE_READ_TOKEN }}
|
|
# infisical-project: ${{ vars.INFISICAL_DEPLOYMENTS_PROJECT_ID }}
|
|
# secret-envs: edge
|
|
# secret-paths: /kubernetes
|
|
# 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 }}
|
|
infisical-project: ${{ vars.INFISICAL_DEPLOYMENTS_PROJECT_ID }}
|
|
extra-secret-paths: /dashboard
|
|
extra-secret-envs: edge
|
|
# 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 }}
|
|
# env: # (Used when cluster does not match the edge environment)
|
|
# MCL_KUBECONFIG: ${{ env.KUBERNETES_CONFIG_USW_MC }}
|
|
# 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 MC
|
|
additional-content: "Minecluster Server Manager Deployment" |