Skip to content

Deactivate Environments #102

Deactivate Environments

Deactivate Environments #102

name: Deactivate Environments
on:
schedule:
- cron: '0 20 * * *'
jobs:
deactivate-environments:
name: Deactivate Environments
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Nomad
uses: lucasmelin/[email protected]
- name: Exchange GitHub JWT for Nomad token
uses: RoboJackets/nomad-jwt-auth@main
with:
url: https://nomad.bcdc.robojackets.net
jwtGithubAudience: https://nomad.bcdc.robojackets.net
methodName: GitHub
- name: Stop test
env:
NOMAD_ADDR: https://nomad.bcdc.robojackets.net
continue-on-error: true
run: |
nomad stop apiary-test
- name: Stop sandbox
env:
NOMAD_ADDR: https://nomad.bcdc.robojackets.net
continue-on-error: true
run: |
nomad stop apiary-sandbox