Skip to content

Commit

Permalink
Move deploy workflow away from nomad variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SapiensAnatis committed Aug 26, 2024
1 parent e377abe commit 06b2bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
export NOMAD_ADDR="https://10.0.0.2:4646"
export NOMAD_CACERT="/srv/certs/cluster-agent-ca.pem"
export NOMAD_TOKEN="${{ secrets.NOMAD_TOKEN }}"
nomad var get nomad/jobs/${{ vars.JOB_NAME }}/ | nomad var put -out json - version="${{ inputs.version }}"
cd "${{ vars.JOB_DIRECTORY }}"
nomad job run "${{ vars.JOB_FILE_NAME }}"
echo 'version = "${{ inputs.version }}"' > "${{ vars.JOB_FILE_NAME }}.vars"
nomad job run -var-file="${{ vars.JOB_FILE_NAME }}.vars" "${{ vars.JOB_FILE_NAME }}"

0 comments on commit 06b2bb7

Please sign in to comment.