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
cd /tmp/pipeline/hab/results | |
export HAB_AUTH_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, | |
hab pkg upload $(awk -F= '/^pkg_artifact/{print $2}' /tmp/pipeline/hab/results/last_build.env) |
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
bats --tap /tmp/SourceOutput/test.bats |
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
export HAB_ORIGIN=$(awk -F= '/^pkg_origin/{print $2}' /tmp/SourceOutput/plan.sh) | |
purge_containers=$(if [ $(docker ps -a -q | wc -l) -gt 0 ]; then docker rm -f -v $(docker ps -a -q); fi) | |
purge_images=$(if [ $(docker images -q | wc -l) -gt 0 ]; then docker rmi -f $(docker images -q); fi) | |
hab studio run "hab pkg export docker $(awk -F= '/^pkg_origin/{print $2}' /tmp/SourceOutput/plan.sh)/$(awk -F= '/^pkg_name/{print $2}' /tmp/SourceOutput/plan.sh)" | |
docker run -it -d -p 8080:8080 --name $(awk -F= '/^pkg_name/{print $2}' /tmp/SourceOutput/plan.sh) $(awk -F= '/^pkg_origin/{print $2}' /tmp/SourceOutput/plan.sh)/$(awk -F= '/^pkg_name/{print $2}' /tmp/SourceOutput/plan.sh) |
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
cd /tmp/SourceOutput | |
hab pkg build . | |
mkdir -p /tmp/pipeline/hab && cp -r /tmp/SourceOutput/results \"$_\"" |
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
bash -n /tmp/SourceOutput/plan.sh |
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
export HAB_AUTH_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
export HAB_ORIGIN=$(awk -F= '/^pkg_origin/{print $2}' /tmp/SourceOutput/plan.sh) | |
hab origin key generate $(awk -F= '/^pkg_origin/{print $2}' /tmp/SourceOutput/plan.sh) | |
hab origin key upload $(awk -F= '/^pkg_origin/{print $2}' /tmp/SourceOutput/plan.sh) |
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
aws configure set s3.signature_version s3v4 | |
aws s3 cp s3://bettinger-pipeline-artifactbucket-1afmvg2ziqzwx/bettinger-pipeline-H/SourceOutp/SWuupfm.zip /tmp/SourceOutput.zip | |
rm -rf /tmp/SourceOutput && mkdir /tmp/SourceOutput && unzip /tmp/SourceOutput.zip -d /tmp/SourceOutput |