Skip to content

Deploy

Deploy #3

Workflow file for this run

name: Deploy
on:
workflow_call:
inputs:
image-digest:
required: true
type: string
precompressed-assets:
required: true
type: boolean
workflow_dispatch:
inputs:
image-digest:
required: true
type: string
precompressed-assets:
required: true
type: boolean
concurrency:
group: deploy-production
cancel-in-progress: true
jobs:
deploy:
name: Deploy
environment:
name: production
url: https://jedi.robojackets.org
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: GitHubActions
- name: Run Nomad job
env:
NOMAD_ADDR: https://nomad.bcdc.robojackets.net
working-directory: ./.nomad/
run: |
nomad run -var image=registry.bcdc.robojackets.net/jedi@${{ inputs.image-digest }} -var precompressed_assets=${{ inputs.precompressed-assets }} jedi.nomad