Skip to content

Commit

Permalink
ci: use the official golang dockerhub image
Browse files Browse the repository at this point in the history
update test-unit task to not put bosh-util repo under github.com/ directory

Signed-off-by: Ming Xiao <[email protected]>
  • Loading branch information
aramprice committed Sep 4, 2024
1 parent 500383c commit 4c7a31b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 7 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
trigger: true
- get: bosh-utils
- get: golang-release
- get: golang-image
- task: bump-deps
file: golang-release/ci/tasks/shared/bump-deps.yml
input_mapping:
Expand All @@ -36,6 +37,7 @@ jobs:
input_mapping:
bosh-utils: bumped-bosh-utils
file: bosh-utils/ci/tasks/test-unit.yml
image: golang-image
- task: test-unit-windows
input_mapping:
bosh-utils: bumped-bosh-utils
Expand Down Expand Up @@ -126,6 +128,11 @@ jobs:
skip_download: true

resources:
- name: golang-image
type: registry-image
source:
repository: golang
tag: 1.22
- name: weekly
type: time
source:
Expand Down
4 changes: 1 addition & 3 deletions ci/tasks/test-unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@

set -ex

export PATH=/usr/local/go/bin:$GOPATH/bin:$PATH

cd gopath/src/github.com/cloudfoundry/bosh-utils
cd bosh-utils
bin/test-unit
3 changes: 1 addition & 2 deletions ci/tasks/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ image_resource:

inputs:
- name: bosh-utils
path: gopath/src/github.com/cloudfoundry/bosh-utils

run:
path: gopath/src/github.com/cloudfoundry/bosh-utils/ci/tasks/test-unit.sh
path: bosh-utils/ci/tasks/test-unit.sh

0 comments on commit 4c7a31b

Please sign in to comment.