Skip to content

Commit

Permalink
[change] args to env
Browse files Browse the repository at this point in the history
  • Loading branch information
qazz92 committed Nov 2, 2020
1 parent f42cb01 commit 969be5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:
image: 'Dockerfile'
env:
NOMAD_TOKEN: ${{ inputs.token }}
NOMAD_ADDRESS: ${{ inputs.address }}
NOMAD_ADDR: ${{ inputs.address }}
NOMAD_JOB: ${{ inputs.job }}
LEVANT_CONFIG: ${{ inputs.config }}
branding:
Expand Down
10 changes: 1 addition & 9 deletions deploy
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#! /usr/bin/env bash

export NOMAD_ADDR="${NOMAD_ADDRESS}"
export NOMAD_TOKEN="${NOMAD_TOKEN}"

if [ -f "$nomad_job_file_path" ]; then
levant deploy -var-file "${LEVANT_CONFIG}" "${NOMAD_JOB}"
else
echo "${NOMAD_JOB} does not exist"
exit 1
fi
levant deploy -var-file "${LEVANT_CONFIG}" "${NOMAD_JOB}"

0 comments on commit 969be5c

Please sign in to comment.