Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
CI aws git checkout (#10451)
Browse files Browse the repository at this point in the history
* 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 da87e06.

* remove no-git for aws

* microfix

* no need in no_git then
  • Loading branch information
General-Beck authored and TriplEight committed Mar 5, 2019
1 parent 7014642 commit 3e1d731
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ variables:
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo"
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")
only: &releaseable_branches
Expand Down Expand Up @@ -102,7 +97,7 @@ build-windows:
script:
- sh scripts/gitlab/build-windows.sh
tags:
- rust-windows
- rust-windows
<<: *collect_artifacts

publish-docker:
Expand Down Expand Up @@ -169,7 +164,6 @@ publish-awss3-release:
image: parity/awscli:latest
stage: publish
only: *releaseable_branches
<<: *no_git
cache: {}
dependencies:
- build-linux
Expand Down Expand Up @@ -197,7 +191,7 @@ build-android:
image: parity/rust-android:gitlab-ci
variables:
CARGO_TARGET: armv7-linux-androideabi
dependencies:
dependencies: []
script:
- scripts/gitlab/build-unix.sh
tags:
Expand Down
4 changes: 2 additions & 2 deletions scripts/gitlab/publish-aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ 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;
BUCKET=releases.parity.io/ethereum;
;;
(*)
export BUCKET=builds-parity;
BUCKET=builds-parity;
;;
esac
aws s3 sync ./artifacts s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/
Expand Down

0 comments on commit 3e1d731

Please sign in to comment.