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 RUN_TESTS: all
script: script:
- scripts/gitlab/test-all.sh - scripts/gitlab/test-all.sh
- sccache -s
tags: tags:
- linux-docker - linux-docker
@ -118,7 +119,7 @@ publish-snap:
allow_failure: true allow_failure: true
<<: *collect_artifacts <<: *collect_artifacts
publish:onnet:update: publish-onnet-update:
stage: publish-onchain stage: publish-onchain
only: *releaseable_branches only: *releaseable_branches
cache: {} cache: {}
@ -126,7 +127,7 @@ publish:onnet:update:
- build-linux - build-linux
- build-darwin - build-darwin
- build-windows - build-windows
- publish:awss3:release - publish-awss3-release
before_script: *determine_version before_script: *determine_version
script: script:
- scripts/gitlab/publish-onnet-update.sh - scripts/gitlab/publish-onnet-update.sh
@ -134,7 +135,7 @@ publish:onnet:update:
- linux-docker - linux-docker
# configures aws for fast uploads/syncs # configures aws for fast uploads/syncs
.s3_before_script: &s3_before_script .s3-before-script: &s3-before-script
before_script: before_script:
- mkdir -p ${HOME}/.aws - mkdir -p ${HOME}/.aws
- | - |
@ -150,7 +151,7 @@ publish:onnet:update:
addressing_style = path addressing_style = path
EOC EOC
publish:awss3:release: publish-awss3-release:
image: parity/awscli:latest image: parity/awscli:latest
stage: publish stage: publish
only: *releaseable_branches only: *releaseable_branches
@ -161,7 +162,7 @@ publish:awss3:release:
- build-windows - build-windows
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
<<: *s3_before_script <<: *s3-before-script
script: script:
- 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
@ -174,7 +175,7 @@ publish:awss3:release:
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}}/
after_script: after_script:
- aws s3 ls s3://${BUCKET}/latest/ - aws s3 ls s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/
--recursive --human-readable --summarize --recursive --human-readable --summarize
tags: tags:
- linux-docker - linux-docker