-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update construction of StemcellAutomation.zip
This updates the construction of StemcellAutomation.zip to require user-provided files. This is closer to how the official binaries for `stembuild` were built. A script has been added to build the zip file when provided with the appropriate assets.
- Loading branch information
Showing
4 changed files
with
92 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
set -eu -o pipefail | ||
|
||
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" | ||
STEMCELL_AUTOMATION_PS1=$(ls "${ROOT_DIR}"/stemcell-automation/*ps1 | grep -iv Test) | ||
|
||
: ${OPENSSH_ZIP?"Please see README.md on where to obtain this."} | ||
: ${BOSH_PSMODULES_ZIP?"Please see README.md on where to obtain this."} | ||
: ${AGENT_ZIP?"Please see README.md on how to construct this."} | ||
: ${DEPS_JSON?"Please see README.md on how to construct this."} | ||
|
||
TEMP_DIR=$(mktemp -d) | ||
|
||
cp "${OPENSSH_ZIP}" "${TEMP_DIR}/OpenSSH-Win64.zip" | ||
cp "${BOSH_PSMODULES_ZIP}" "${TEMP_DIR}/bosh-psmodules.zip" | ||
cp "${AGENT_ZIP}" "${TEMP_DIR}/agent.zip" | ||
cp "${DEPS_JSON}" "${TEMP_DIR}/deps.json" | ||
cp ${STEMCELL_AUTOMATION_PS1} "$TEMP_DIR" | ||
|
||
rm "${ROOT_DIR}/assets/StemcellAutomation.zip" | ||
|
||
zip -rj "${ROOT_DIR}/assets/StemcellAutomation.zip" "$TEMP_DIR" | ||
|
||
rm -r "$TEMP_DIR" |
This file was deleted.
Oops, something went wrong.