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

fix publish job #10317

Merged
merged 2 commits into from
Feb 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ test-linux:
RUN_TESTS: all
script:
- scripts/gitlab/test-all.sh
- sccache -s
tags:
- linux-docker

Expand Down Expand Up @@ -118,23 +119,23 @@ publish-snap:
allow_failure: true
<<: *collect_artifacts

publish:onnet:update:
publish-onnet-update:
stage: publish-onchain
only: *releaseable_branches
cache: {}
dependencies:
- build-linux
- build-darwin
- build-windows
- publish:awss3:release
- publish-awss3-release
before_script: *determine_version
script:
- scripts/gitlab/publish-onnet-update.sh
tags:
- linux-docker

# configures aws for fast uploads/syncs
.s3_before_script: &s3_before_script
.s3-before-script: &s3-before-script
before_script:
- mkdir -p ${HOME}/.aws
- |
Expand All @@ -150,7 +151,7 @@ publish:onnet:update:
addressing_style = path
EOC

publish:awss3:release:
publish-awss3-release:
image: parity/awscli:latest
stage: publish
only: *releaseable_branches
Expand All @@ -161,7 +162,7 @@ publish:awss3:release:
- build-windows
variables:
GIT_STRATEGY: none
<<: *s3_before_script
<<: *s3-before-script
script:
- echo "__________Push binaries to AWS S3____________"
- case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in
Expand All @@ -174,7 +175,7 @@ publish:awss3:release:
esac
- aws s3 sync ./artifacts s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/
after_script:
- aws s3 ls s3://${BUCKET}/latest/
- aws s3 ls s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/
--recursive --human-readable --summarize
tags:
- linux-docker
Expand Down