Skip to content

Commit

Permalink
Use printf to get line sep build args
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpittwood committed Jul 21, 2023
1 parent 42272e8 commit 9693221
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/actions/build-test-scan-push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ runs:
file: ${{ inputs.context }}/Dockerfile.${{ inputs.os }}
cache-from: type=gha
cache-to: type=gha
build-args: ${{ inputs.build-args }}
build-args: |
${{ inputs.build-args }}
tags: ${{ inputs.image-tags }}

- name: Get first tag
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
os: ${{ matrix.os }}
product: base
image-tags: ${{ steps.get-tags.outputs.IMAGE_TAGS }}
push-image: ${{ github.ref == 'refs/heads/main' }}
snyk-token: ${{ secrets.SNYK_TOKEN }}
snyk-org-id: ${{ secrets.SNYK_ORG_ID }}
ghcr-token: ${{ secrets.BUILD_PAT }}
Expand Down
18 changes: 9 additions & 9 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
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}"
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}"

get-base-tags $OS $TYPE="base" $BRANCH=`git branch --show`:
#!/usr/bin/env bash
Expand All @@ -139,9 +139,9 @@ get-base-tags $OS $TYPE="base" $BRANCH=`git branch --show`:
IMAGE_NAME="${IMAGE_NAME}-dev"
fi

echo ghcr.io/rstudio/${IMAGE_NAME}:${OS},\
ghcr.io/rstudio/${IMAGE_NAME}:${OS}-r{{R_VERSION}}-py{{PYTHON_VERSION}},\
ghcr.io/rstudio/${IMAGE_NAME}:${OS}-r{{R_VERSION}}_{{R_VERSION_ALT}}-py{{PYTHON_VERSION}}_{{PYTHON_VERSION_ALT}}
printf "ghcr.io/rstudio/${IMAGE_NAME}:${OS},
ghcr.io/rstudio/${IMAGE_NAME}:${OS}-r{{R_VERSION}}-py{{PYTHON_VERSION}},
ghcr.io/rstudio/${IMAGE_NAME}:${OS}-r{{R_VERSION}}_{{R_VERSION_ALT}}-py{{PYTHON_VERSION}}_{{PYTHON_VERSION_ALT}}"

# just BUILDX_PATH=~/.buildx test-base ubuntu1804 base
test-base $OS $TYPE="base" $BRANCH=`git branch --show`:
Expand Down

0 comments on commit 9693221

Please sign in to comment.