From b49bf9d5b0917237f37b5cef6db1e6e457fcb458 Mon Sep 17 00:00:00 2001 From: gabriel klawitter Date: Thu, 5 Mar 2020 14:12:00 +0100 Subject: [PATCH] ci: increase artifact retention period (#869) * ci: increase artifact retention period --- polkadot/.gitlab-ci.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/polkadot/.gitlab-ci.yml b/polkadot/.gitlab-ci.yml index f8c3d57fa4..2929cd8263 100644 --- a/polkadot/.gitlab-ci.yml +++ b/polkadot/.gitlab-ci.yml @@ -28,7 +28,7 @@ variables: artifacts: name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}" when: on_success - expire_in: 7 days + expire_in: 28 days paths: - artifacts/ @@ -253,15 +253,24 @@ publish-s3-release: BUCKET: "releases.parity.io" PREFIX: "polkadot/${ARCH}-${DOCKER_OS}" script: - - echo "uploading objects to ${BUCKET}/${PREFIX}/${VERSION}" + - echo "uploading objects to https://${BUCKET}/${PREFIX}/${VERSION}" - aws s3 sync ./artifacts/ s3://${BUCKET}/${PREFIX}/${VERSION}/ - - echo "update objects at ${BUCKET}/${PREFIX}/${EXTRATAG}/${name}" + - echo "update objects at https://${BUCKET}/${PREFIX}/${EXTRATAG}" - for file in ./artifacts/*; do name="$(basename ${file})"; aws s3api copy-object --copy-source ${BUCKET}/${PREFIX}/${VERSION}/${name} --bucket ${BUCKET} --key ${PREFIX}/${EXTRATAG}/${name}; done + - | + cat <<-EOM + | + | polkadot binary paths: + | + | - https://${BUCKET}/${PREFIX}/${EXTRATAG}/polkadot + | - https://${BUCKET}/${PREFIX}/${VERSION}/polkadot + | + EOM after_script: - aws s3 ls s3://${BUCKET}/${PREFIX}/${EXTRATAG}/ --recursive --human-readable --summarize