Skip to content

Commit

Permalink
Feed build args as JSON to action
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpittwood committed Jul 21, 2023
1 parent e21d99e commit fe7a0d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-test-scan-push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ runs:
cache-from: type=gha
cache-to: type=gha
build-args: |
${{ inputs.build-args }}
${{ join(fromJSON(inputs.build-args), "\n") }}
tags: ${{ inputs.image-tags }}

- name: Get first tag
Expand Down
12 changes: 6 additions & 6 deletions ci.Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ get-base-args $OS $TYPE="base" $BRANCH=`git branch --show`:
else
_DRIVERS_VERSION="{{ DRIVERS_VERSION }}"
fi
printf "R_VERSION={{ R_VERSION }}
R_VERSION_ALT={{ R_VERSION_ALT }}
PYTHON_VERSION={{ PYTHON_VERSION }}
PYTHON_VERSION_ALT={{ PYTHON_VERSION_ALT }}
DRIVERS_VERSION=${_DRIVERS_VERSION}
SRC_IMAGE_NAME=${SRC_IMAGE_NAME}"
echo "[\"R_VERSION={{ R_VERSION }}\",\
\"R_VERSION_ALT={{ R_VERSION_ALT }}\",\
\"PYTHON_VERSION={{ PYTHON_VERSION }}\",\
\"PYTHON_VERSION_ALT={{ PYTHON_VERSION_ALT }}\",\
\"DRIVERS_VERSION=${_DRIVERS_VERSION}\",\
\"SRC_IMAGE_NAME=${SRC_IMAGE_NAME}\"]"

get-base-tags $OS $TYPE="base" $BRANCH=`git branch --show`:
#!/usr/bin/env bash
Expand Down

0 comments on commit fe7a0d9

Please sign in to comment.