Skip to content

Commit 60532e7

Browse files
author
alexlianides
committed
fix push_build_artifacts to utilize image tag from extraBuildArtifacts if present
1 parent b2012c5 commit 60532e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/push_build_artifact.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,16 @@ function main() {
302302
DEST_ARTIFACT_TAG="${ARTIFACT_VERSION}"
303303
DEST_SPACEFX_TAG="${SPACEFX_VERSION}"
304304

305+
run_a_script "basename ${ARTIFACT}" fileName --disable_log
306+
305307
# Look in extraBuildArtifacts to see if a specfic tag is required
306308
run_a_script "jq -r '.config.extraBuildArtifacts // empty | map(select(.file == \"${fileName}\")) | if length > 0 then .[0] | @base64 else \"\" end' ${SPACEFX_DIR}/tmp/config/spacefx-config.json" build_artifact --disable_log --ignore_error
307309

308310
# Found the in extraBuildArtifacts, confirmed static artifact
309311
if [[ -n "${build_artifact}" ]]; then
310312
info_log "..found '${fileName}' in build artifacts."
311313
DEST_ARTIFACT_TAG="${ARTIFACT_VERSION}"
314+
DEST_SPACEFX_TAG="${ARTIFACT_VERSION}"
312315
else
313316
# artifact is not static, check if we have a tag suffix from our config file
314317
run_a_script "jq -r 'if (.config | has(\"tagSuffix\")) then .config.tagSuffix else \"\" end' ${SPACEFX_DIR}/tmp/config/spacefx-config.json" tag_suffix --disable_log

0 commit comments

Comments
 (0)