Skip to content

Commit

Permalink
CI: Rename param for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
aramprice committed Dec 20, 2024
1 parent e06f882 commit 6665f8c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ci/tasks/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ outputs:
- name: compiled-linux-amd64

params:
DIRNAME: compiled-linux-amd64
OUTPUT_DIR: compiled-linux-amd64
GOARCH: amd64
GOOS: linux

Expand Down
2 changes: 1 addition & 1 deletion ci/tasks/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ outputs:
- name: compiled-windows-amd64

params:
DIRNAME: compiled-windows-amd64
OUTPUT_DIR: compiled-windows-amd64
GOARCH: amd64
GOOS: windows

Expand Down
16 changes: 8 additions & 8 deletions ci/tasks/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ if [[ $GOOS = 'windows' ]]; then
filename_suffix="${filename_suffix}.exe"
fi

timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
go_ver=$(go version | cut -d ' ' -f 3)

cd bosh-agent

git_rev=$(git rev-parse --short HEAD)

timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
go_ver=$(go version | cut -d ' ' -f 3)
version="${semver}-${git_rev}-${timestamp}-${go_ver}"

export VERSION_LABEL="${version}"

bin/build

# output bosh-agent
shasum -a 256 out/bosh-agent
cp out/bosh-agent "${CONCOURSE_ROOT}/${DIRNAME}/bosh-agent-${filename_suffix}"
cp out/bosh-agent "${CONCOURSE_ROOT}/${OUTPUT_DIR}/bosh-agent-${filename_suffix}"

if [[ $GOOS = 'windows' ]]; then
shasum -a 256 out/bosh-agent-pipe
cp out/bosh-agent-pipe "${CONCOURSE_ROOT}/${DIRNAME}/bosh-agent-pipe-${filename_suffix}"
cp out/bosh-agent-pipe "${CONCOURSE_ROOT}/${OUTPUT_DIR}/bosh-agent-pipe-${filename_suffix}"

shasum -a 256 integration/windows/fixtures/service_wrapper.xml
cp integration/windows/fixtures/service_wrapper.xml "${CONCOURSE_ROOT}/${DIRNAME}"
cp integration/windows/fixtures/service_wrapper.xml "${CONCOURSE_ROOT}/${OUTPUT_DIR}"

git rev-parse HEAD > "${CONCOURSE_ROOT}/${DIRNAME}/git-sha"
echo "${git_rev}" > "${CONCOURSE_ROOT}/${OUTPUT_DIR}/git-sha"
fi

0 comments on commit 6665f8c

Please sign in to comment.