Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Fix hack packer build script
Browse files Browse the repository at this point in the history
  • Loading branch information
simonswine committed Feb 11, 2019
1 parent 9d59471 commit 0b09ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/release-tarmak-packer-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ TARMAK_VERSION=${TARMAK_VERSION:-${KUBE_GIT_VERSION}}
SCRIPT_ROOT=$(dirname "${BASH_SOURCE}")/..
PACKER_ROOT=$(dirname "${BASH_SOURCE}")/../packer/amazon

TMP_PACKER_CONFIG="${PACKER_ROOT}/.tmp_${TARMAK_BASE_IMAGE}.json"
TMP_PACKER_CONFIG="${PACKER_ROOT}/.tmp_${TARMAK_BASE_IMAGE_NAME}.json"

# build packer release config
jq -s '
Expand All @@ -46,5 +46,5 @@ jq -s '
| .[2]' "${PACKER_ROOT}/${TARMAK_BASE_IMAGE_NAME}.json" "${PACKER_ROOT}/releases.json" > "${TMP_PACKER_CONFIG}"

# run packer
export TARMAK_BASE_IMAGE TARMAK_VERSION
export TARMAK_BASE_IMAGE_NAME TARMAK_VERSION
exec packer build "${TMP_PACKER_CONFIG}"

0 comments on commit 0b09ad3

Please sign in to comment.