43 lines
No EOL
1.4 KiB
YAML
43 lines
No EOL
1.4 KiB
YAML
name: Deploy USW-MC
|
|
run-name: ${{ gitea.actor }} Deploy USW-MC
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
GARDEN_DEPLOY_ACTION: minecluster
|
|
|
|
jobs:
|
|
deploy-edge:
|
|
steps:
|
|
# Configure proper kubeconfig
|
|
- name: Get usw-mc deployment kubeconfig
|
|
uses: https://gitea.dunemask.dev/elysium/elysium-actions@infisical-env
|
|
with:
|
|
infisical-token: ${{ secrets.INFISICAL_ELYSIUM_EDGE_READ_TOKEN }}
|
|
secret-envs: edge
|
|
secret-paths: /kubernetes
|
|
# Setup Oasis
|
|
- name: Oasis Setup
|
|
uses: https://gitea.dunemask.dev/elysium/elysium-actions@oasis-setup-auto
|
|
with:
|
|
deploy-env: edge
|
|
infisical-token: ${{ secrets.INFISICAL_ELYSIUM_EDGE_READ_TOKEN }}
|
|
extra-secret-paths: /alexandria
|
|
extra-secret-envs: edge
|
|
kubeconfig: ${{ env.KUBERNETES_CONFIG_USW_MC }}
|
|
# Deploy to Edge
|
|
- name: Deploy to Edge env
|
|
run: garden deploy $GARDEN_DEPLOY_ACTION --force --force-build --env usw-mc
|
|
working-directory: ${{ env.OASIS_WORKSPACE }}
|
|
env:
|
|
MCL_KUBECONFIG: ${{ env.KUBERNETES_CONFIG_USW_MC }}
|
|
# Alert via Discord
|
|
- name: Discord Alert
|
|
if: always()
|
|
uses: https://gitea.dunemask.dev/elysium/elysium-actions@discord-status
|
|
with:
|
|
status: ${{ job.status }}
|
|
channel: deployments
|
|
header: DEPLOY MC
|
|
additional-content: "Minecluster Server Manager Deployment" |