From 06b2bb744321abfec7501c297e32b452e10a4e82 Mon Sep 17 00:00:00 2001 From: Jay Malhotra Date: Mon, 26 Aug 2024 04:02:57 +0100 Subject: [PATCH] Move deploy workflow away from nomad variables --- .github/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 91c5604f1..dd7ee2944 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 }}"