CI aws git checkout (#10451)

* Updating the CI system with the publication of releases and binary files on github

Signed-off-by: Denis S. Soldatov aka General-Beck <general.beck@gmail.com>

* move publish aws from gitlab.yml to gitlab scripts

Signed-off-by: Denis S. Soldatov aka General-Beck <general.beck@gmail.com>

* gitlab.yml cleaning
move publish AWS to gitlab scripts
remove dependencies from android build

Signed-off-by: Denis S. Soldatov aka General-Beck <general.beck@gmail.com>

* Revert "Updating the CI system with the publication of releases and binary files on github"

This reverts commit da87e06f2e4751dbca08a898b52926aef5ad0aba.

* remove no-git for aws

* microfix

* no need in no_git then
This commit is contained in:
Denis S. Soldatov aka General-Beck 2019-03-05 20:33:10 +03:00 committed by TriplEight
parent 7014642815
commit 3e1d73126c
2 changed files with 4 additions and 10 deletions

View File

@ -12,11 +12,6 @@ variables:
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo" CARGO_HOME: "${CI_PROJECT_DIR}/.cargo"
CARGO_TARGET: x86_64-unknown-linux-gnu CARGO_TARGET: x86_64-unknown-linux-gnu
.no_git: &no_git
variables:
GIT_STRATEGY: none
GIT_SUBMODULE_STRATEGY: none
.releaseable_branches: # list of git refs for building GitLab artifacts (think "pre-release binaries") .releaseable_branches: # list of git refs for building GitLab artifacts (think "pre-release binaries")
only: &releaseable_branches only: &releaseable_branches
@ -169,7 +164,6 @@ publish-awss3-release:
image: parity/awscli:latest image: parity/awscli:latest
stage: publish stage: publish
only: *releaseable_branches only: *releaseable_branches
<<: *no_git
cache: {} cache: {}
dependencies: dependencies:
- build-linux - build-linux
@ -197,7 +191,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: dependencies: []
script: script:
- scripts/gitlab/build-unix.sh - scripts/gitlab/build-unix.sh
tags: tags:

View File

@ -6,10 +6,10 @@ set -u # treat unset variables as error
echo "__________Push binaries to AWS S3____________" echo "__________Push binaries to AWS S3____________"
case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in
(beta|stable|nightly) (beta|stable|nightly)
export BUCKET=releases.parity.io/ethereum; BUCKET=releases.parity.io/ethereum;
;; ;;
(*) (*)
export BUCKET=builds-parity; BUCKET=builds-parity;
;; ;;
esac esac
aws s3 sync ./artifacts s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/ aws s3 sync ./artifacts s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/