fix publish job (#10317)

* fix publish job

* dashes and colonels
This commit is contained in:
TriplEight 2019-02-08 18:22:08 +01:00 committed by GitHub
parent 3502b36232
commit 8b6c5be6a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,7 @@ test-linux:
RUN_TESTS: all
script:
- scripts/gitlab/test-all.sh
- sccache -s
tags:
- linux-docker
@ -118,7 +119,7 @@ publish-snap:
allow_failure: true
<<: *collect_artifacts
publish:onnet:update:
publish-onnet-update:
stage: publish-onchain
only: *releaseable_branches
cache: {}
@ -126,7 +127,7 @@ publish:onnet:update:
- build-linux
- build-darwin
- build-windows
- publish:awss3:release
- publish-awss3-release
before_script: *determine_version
script:
- scripts/gitlab/publish-onnet-update.sh
@ -134,7 +135,7 @@ publish:onnet:update:
- 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
- |
@ -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
@ -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
@ -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