upload zip instead of tar dev builds
This commit is contained in:
parent
656c934f98
commit
76f25d14fd
|
@ -438,14 +438,14 @@ jobs:
|
||||||
at: bin/
|
at: bin/
|
||||||
- run:
|
- run:
|
||||||
name: package binary
|
name: package binary
|
||||||
command: tar -czf consul.tar.gz -C bin/ consul
|
command: zip -j consul.zip bin/consul
|
||||||
- run:
|
- run:
|
||||||
name: Upload to s3
|
name: Upload to s3
|
||||||
command: |
|
command: |
|
||||||
if [ -n "${S3_ARTIFACT_PATH}" ]; then
|
if [ -n "${S3_ARTIFACT_PATH}" ]; then
|
||||||
aws s3 cp \
|
aws s3 cp \
|
||||||
--metadata "CIRCLECI=${CIRCLECI},CIRCLE_BUILD_URL=${CIRCLE_BUILD_URL},CIRCLE_BRANCH=${CIRCLE_BRANCH}" \
|
--metadata "CIRCLECI=${CIRCLECI},CIRCLE_BUILD_URL=${CIRCLE_BUILD_URL},CIRCLE_BRANCH=${CIRCLE_BRANCH}" \
|
||||||
"consul.tar.gz" "s3://${S3_ARTIFACT_BUCKET}/${S3_ARTIFACT_PATH}/${CIRCLE_SHA1}.tar.gz"
|
"consul.zip" "s3://${S3_ARTIFACT_BUCKET}/${S3_ARTIFACT_PATH}/${CIRCLE_SHA1}.zip" --acl public-read
|
||||||
else
|
else
|
||||||
echo "CircleCI - S3_ARTIFACT_PATH was not set"
|
echo "CircleCI - S3_ARTIFACT_PATH was not set"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue