Skip to content

Commit 3f89d4a

Browse files
committed
CI: fix build-docker-args task
This task doesn't have a cess to bosh-linux-stemcell-builder so it needs to read `.ruby-version` from it's own resource. Also add `.ruby-version` to the `bosh-stemcells-ci` resources's paths.
1 parent b62f580 commit 3f89d4a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

ci/pipelines/builder.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,7 @@ resources:
10601060
branch: (@= data.values.stemcell_details.branch @)
10611061
paths:
10621062
- ci
1063+
- .ruby-version
10631064
uri: https://github.com/cloudfoundry/bosh-linux-stemcell-builder
10641065

10651066
- name: bats

ci/tasks/build-docker-args.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ yq_cli_url="$(curl -s https://api.github.com/repos/mikefarah/yq/releases/latest
2828
ruby_install_url="$(curl -s https://api.github.com/repos/postmodern/ruby-install/releases/latest \
2929
| jq -r '.assets[] | select(.name | endswith ("tar.gz")) | .browser_download_url')"
3030

31-
ruby_version="$(cat "${REPO_PARENT}/bosh-linux-stemcell-builder/.ruby-version")"
31+
ruby_version="$(cat "${REPO_ROOT}/.ruby-version")"
3232
gem_home="/usr/local/bundle"
3333

3434
cat << EOF > "${REPO_PARENT}/docker-build-args/docker-build-args.json"

0 commit comments

Comments
 (0)