CI publish to aws (#10446)

* move publish aws from gitlab.yml to gitlab scripts

* gitlab.yml cleaning
move publish AWS to gitlab scripts
remove dependencies from android build
This commit is contained in:
Denis S. Soldatov aka General-Beck 2019-03-04 21:59:20 +03:00 committed by GitHub
parent 97cb010df8
commit 1bd4564216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 13 deletions

View File

@ -176,19 +176,7 @@ publish-awss3-release:
- build-darwin - build-darwin
- build-windows - build-windows
script: script:
- echo "__________Push binaries to AWS S3____________" - scripts/gitlab/publish-aws.sh
- case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in
(beta|stable|nightly)
export BUCKET=releases.parity.io/ethereum;
;;
(*)
export BUCKET=builds-parity;
;;
esac
- aws s3 sync ./artifacts s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/
after_script:
- aws s3 ls s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/
--recursive --human-readable --summarize
tags: tags:
- linux-docker - linux-docker
@ -209,6 +197,7 @@ build-android:
image: parity/rust-android:gitlab-ci image: parity/rust-android:gitlab-ci
variables: variables:
CARGO_TARGET: armv7-linux-androideabi CARGO_TARGET: armv7-linux-androideabi
dependencies:
script: script:
- scripts/gitlab/build-unix.sh - scripts/gitlab/build-unix.sh
tags: tags:

18
scripts/gitlab/publish-aws.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
set -e # fail on any error
set -u # treat unset variables as error
echo "__________Push binaries to AWS S3____________"
case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in
(beta|stable|nightly)
export BUCKET=releases.parity.io/ethereum;
;;
(*)
export BUCKET=builds-parity;
;;
esac
aws s3 sync ./artifacts s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/
echo "__________Read from S3____________"
aws s3 ls s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/
--recursive --human-readable --summarize