From 62c0a10e1ff79c70c05128bf8803bd7b097b3097 Mon Sep 17 00:00:00 2001 From: alvicsam Date: Tue, 25 Jan 2022 10:39:27 +0100 Subject: [PATCH] [ci] remove publish-s3-release --- .gitlab-ci.yml | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7d87fc21b654..72f258bc13f6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -104,12 +104,6 @@ default: #### Vault secrets .vault-secrets: &vault-secrets secrets: - AWS_ACCESS_KEY_ID: - vault: cicd/gitlab/$CI_PROJECT_PATH/AWS_ACCESS_KEY_ID@kv - file: false - AWS_SECRET_ACCESS_KEY: - vault: cicd/gitlab/$CI_PROJECT_PATH/AWS_SECRET_ACCESS_KEY@kv - file: false GITHUB_PR_TOKEN: vault: cicd/gitlab/parity/GITHUB_PR_TOKEN@kv file: false @@ -504,47 +498,6 @@ update_westend_weights: #### stage: publish -publish-s3-release: &publish-s3 - stage: publish - needs: - - job: test-build-linux-stable - artifacts: true - <<: *kubernetes-env - <<: *vault-secrets - image: paritytech/awscli:latest - variables: - GIT_STRATEGY: none - PREFIX: "builds/polkadot/${ARCH}-${DOCKER_OS}" - rules: - - if: $CI_PIPELINE_SOURCE == "pipeline" - when: never - # publishing binaries nightly - - if: $CI_PIPELINE_SOURCE == "schedule" - before_script: - - *check-versions - script: - - echo "uploading objects to https://releases.parity.io/${PREFIX}/${VERSION}" - - aws s3 sync --acl public-read ./artifacts/ s3://${AWS_BUCKET}/${PREFIX}/${VERSION}/ - - echo "update objects at https://releases.parity.io/${PREFIX}/${EXTRATAG}" - - find ./artifacts -type f | while read file; do - name="${file#./artifacts/}"; - aws s3api copy-object - --copy-source ${AWS_BUCKET}/${PREFIX}/${VERSION}/${name} - --bucket ${AWS_BUCKET} --key ${PREFIX}/${EXTRATAG}/${name}; - done - - | - cat <<-EOM - | - | polkadot binary paths: - | - | - https://releases.parity.io/${PREFIX}/${EXTRATAG}/polkadot - | - https://releases.parity.io/${PREFIX}/${VERSION}/polkadot - | - EOM - after_script: - - aws s3 ls s3://${AWS_BUCKET}/${PREFIX}/${EXTRATAG}/ - --recursive --human-readable --summarize - publish-rustdoc: stage: publish <<: *kubernetes-env