Compare commits
1 commit
master
...
ep/Feb19-2
Author | SHA1 | Date | |
---|---|---|---|
16ec411eaa |
3 changed files with 63 additions and 34 deletions
|
@ -5,19 +5,35 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.ELYSIUM_ORG_READ_TOKEN }}
|
|
||||||
KUBECONFIG_BASE64: ${{ secrets.KUBECONFIG_USW_EDGE }}
|
|
||||||
GARDEN_DEPLOY_ACTION: minecluster-proxy
|
GARDEN_DEPLOY_ACTION: minecluster-proxy
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-edge:
|
deploy-edge:
|
||||||
steps:
|
steps:
|
||||||
- name: Oasis Setup
|
# Configure proper kubeconfig
|
||||||
uses: https://gitea.dunemask.dev/elysium/oasis-action@master
|
- name: Get usw-mc deployment kubeconfig
|
||||||
|
uses: https://gitea.dunemask.dev/elysium/elysium-actions@infisical-env
|
||||||
with:
|
with:
|
||||||
gitea-token: ${{ env.GITEA_TOKEN }}
|
infisical-token: ${{ secrets.INFISICAL_ELYSIUM_EDGE_READ_TOKEN }}
|
||||||
kubeconfig: ${{ env.KUBECONFIG_BASE64 }}
|
secret-envs: edge
|
||||||
- name: Deploy to Edge env
|
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 }}
|
||||||
|
kubeconfig: ${{ env.KUBERNETES_CONFIG_USW_MC }}
|
||||||
|
# Deploy to Edge Cluster
|
||||||
|
- name: Deploy to Edge Cluster
|
||||||
run: garden deploy $GARDEN_DEPLOY_ACTION --force --force-build --env usw-edge
|
run: garden deploy $GARDEN_DEPLOY_ACTION --force --force-build --env usw-edge
|
||||||
working-directory: ${{ env.OASIS_WORKSPACE }}
|
working-directory: ${{ env.OASIS_WORKSPACE }}
|
||||||
|
# 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 EDGE
|
||||||
|
additional-content: "Minecluster Proxy"
|
|
@ -5,22 +5,29 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.ELYSIUM_ORG_READ_TOKEN }}
|
|
||||||
KUBECONFIG_BASE64: ${{ secrets.KUBECONFIG_USW_MC }}
|
|
||||||
GARDEN_DEPLOY_ACTION: minecluster
|
GARDEN_DEPLOY_ACTION: minecluster
|
||||||
# Additional Deploy Envars
|
|
||||||
POSTGRES_PROD_PASSWORD: ${{ secrets.POSTGRES_PROD_PASSWORD }}
|
|
||||||
MCL_KUBECONFIG: ${{ secrets.KUBECONFIG_USW_MC }}
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-edge:
|
deploy-edge:
|
||||||
steps:
|
steps:
|
||||||
|
# Setup Oasis
|
||||||
- name: Oasis Setup
|
- name: Oasis Setup
|
||||||
uses: https://gitea.dunemask.dev/elysium/oasis-action@master
|
uses: https://gitea.dunemask.dev/elysium/elysium-actions@oasis-setup-auto
|
||||||
with:
|
with:
|
||||||
gitea-token: ${{ env.GITEA_TOKEN }}
|
deploy-env: edge
|
||||||
kubeconfig: ${{ env.KUBECONFIG_BASE64 }}
|
infisical-token: ${{ secrets.INFISICAL_ELYSIUM_EDGE_READ_TOKEN }}
|
||||||
|
extra-secret-paths: /alexandria
|
||||||
|
extra-secret-envs: edge
|
||||||
|
# Deploy to Edge
|
||||||
- name: Deploy to Edge env
|
- name: Deploy to Edge env
|
||||||
run: garden deploy $GARDEN_DEPLOY_ACTION --force --force-build --env usw-mc
|
run: garden deploy $GARDEN_DEPLOY_ACTION --force --force-build --env usw-edge
|
||||||
working-directory: ${{ env.OASIS_WORKSPACE }}
|
working-directory: ${{ env.OASIS_WORKSPACE }}
|
||||||
|
# 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"
|
|
@ -6,31 +6,37 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REPO_DIR: ${{ gitea.workspace }}/minecluster
|
REPO_DIR: ${{ gitea.workspace }}/minecluster
|
||||||
KUBECONFIG_BASE64: ${{ secrets.KUBECONFIG_USW_DEV }}
|
|
||||||
GITEA_TOKEN: ${{ secrets.ELYSIUM_ORG_READ_TOKEN }}
|
|
||||||
GARDEN_LINK_ACTION: build.minecluster-image
|
GARDEN_LINK_ACTION: build.minecluster-image
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
qa-api-tests:
|
qa-api-tests:
|
||||||
steps:
|
steps:
|
||||||
|
# Setup Oasis
|
||||||
- name: Oasis Setup
|
- name: Oasis Setup
|
||||||
uses: https://gitea.dunemask.dev/elysium/oasis-action@master
|
uses: https://gitea.dunemask.dev/elysium/elysium-actions@oasis-setup-auto
|
||||||
with:
|
with:
|
||||||
gitea-token: ${{ env.GITEA_TOKEN }}
|
deploy-env: ci
|
||||||
kubeconfig: ${{ env.KUBECONFIG_BASE64 }}
|
infisical-token: ${{ secrets.INFISICAL_ELYSIUM_CI_READ_TOKEN }}
|
||||||
# Test Code
|
# Test Code
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ env.REPO_DIR }}
|
path: ${{ env.REPO_DIR }}
|
||||||
# Garden tests
|
# Garden link
|
||||||
- name: Link Repo code to Garden
|
- name: Link Repo code to Garden
|
||||||
run: garden link action $GARDEN_LINK_ACTION $REPO_DIR --env usw-ci --var cubit-projects=cairo,minecluster
|
run: garden link action $GARDEN_LINK_ACTION $REPO_DIR --env usw-ci --var cubit-projects=cairo,minecluster
|
||||||
working-directory: ${{ env.OASIS_WORKSPACE }}
|
working-directory: ${{ env.OASIS_WORKSPACE }}
|
||||||
# Cubit CI Tests
|
# Cubit CI Tests
|
||||||
- name: Run Cubit tests in CI env
|
- name: Run Cubit tests in CI env
|
||||||
run: garden workflow qa-api-tests --env usw-ci --var ci-ttl=25
|
run: garden workflow qa-api-tests --env usw-ci --var ci-ttl=25m
|
||||||
working-directory: ${{ env.OASIS_WORKSPACE }}
|
working-directory: ${{ env.OASIS_WORKSPACE }}
|
||||||
- name: Status Alert
|
# Discord Alert
|
||||||
|
- name: Discord Alert
|
||||||
if: always()
|
if: always()
|
||||||
run: echo "The Job ended with status ${{ job.status }}."
|
uses: https://gitea.dunemask.dev/elysium/elysium-actions@discord-status
|
||||||
|
with:
|
||||||
|
status: ${{ job.status }}
|
||||||
|
channel: ci
|
||||||
|
header: QA API Tests
|
||||||
|
additional-content: "CI Namespace: `${{env.CI_NAMESPACE}}`"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue