Skip to content

Commit

Permalink
Add workflow for stopping test environments
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Mar 10, 2024
1 parent a05a31a commit 518bd0a
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deactivate-enviroments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deactivate Test

on:
schedule:
- cron: '0 20 * * *'
workflow_dispatch: {}

jobs:
deploy:
name: Deactivate Test
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: mikenomitch/[email protected]
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

0 comments on commit 518bd0a

Please sign in to comment.