Skip to content

Commit

Permalink
Use bosh-ecosystem-docker-image and ruby-install
Browse files Browse the repository at this point in the history
instead of cryogenics/essentials and rbenv

Co-authored-by: aram price <aram.price@broadcom.com>
  • Loading branch information
nader-ziada and aramprice committed Sep 5, 2024
1 parent 908d043 commit 321493b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion ci/pipelines/backup-and-restore-sdk-release/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,10 @@ jobs:
passed: ["lint-pipeline"]
- get: cryogenics-concourse-tasks
- get: image-cryogenics-essentials
- get: bosh-ecosystem-docker-image
- in_parallel:
- task: sdk-template-unit-tests
image: image-cryogenics-essentials
image: bosh-ecosystem-docker-image
file: backup-and-restore-sdk-release/ci/tasks/sdk-template-unit-tests/task.yml
- task: databases-unit-tests
image: image-cryogenics-essentials
Expand Down
19 changes: 12 additions & 7 deletions ci/tasks/sdk-template-unit-tests/task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ platform: linux
image_resource:
type: registry-image
source:
repository: harbor-repo.vmware.com/cryogenics/essentials
tag: 0.1.108
repository: bosh/bosh-ecosystem-concourse
username: ((docker.username))
password: ((docker.password))
inputs:
- name: backup-and-restore-sdk-release
run:
Expand All @@ -12,8 +13,12 @@ run:
- -e
- -c
- |
pushd "backup-and-restore-sdk-release"
rbenv install --skip-existing # Install .ruby-version if not present
bundle install
bundle exec rspec
popd
cd backup-and-restore-sdk-release
set -u -o pipefail
echo 'gem: --no-document' > /etc/gemrc
NUM_CPUS=$(grep -c ^processor /proc/cpuinfo)
RUBY_VERSION="$(cat .ruby-version)"
ruby-install --jobs="${NUM_CPUS}" --cleanup --system ruby "${RUBY_VERSION}"
bundle install
bundle exec rspec

0 comments on commit 321493b

Please sign in to comment.