From 506fd494ab2b12a83b7e2a7b1b1ad4a375aab9a3 Mon Sep 17 00:00:00 2001 From: aboyko Date: Fri, 10 Nov 2023 22:11:06 -0500 Subject: [PATCH] CI: website upload via Cloudgate --- .github/scripts/update-distro-download-page.sh | 2 +- concourse/pipeline.yml | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/scripts/update-distro-download-page.sh b/.github/scripts/update-distro-download-page.sh index d8a5507a8..9f50ff81e 100755 --- a/.github/scripts/update-distro-download-page.sh +++ b/.github/scripts/update-distro-download-page.sh @@ -32,7 +32,7 @@ for file in $files do if [[ "$file" =~ ^"s3://tools-spring-io" ]]; then download_url=https://cdn.spring.io/spring-tools${file:20} # - filename=${file:${#s3_url}} + filename=${file:${#s3_url}+1} echo '
  • '${filename}'
  • ' >> $downloads_html fi done diff --git a/concourse/pipeline.yml b/concourse/pipeline.yml index 06f23e24c..d544a7788 100644 --- a/concourse/pipeline.yml +++ b/concourse/pipeline.yml @@ -3,7 +3,7 @@ resource_types: - name: s3-multi type: registry-image source: - repository: springci/s3-resource-simple + repository: docker.io/boykoalex/s3-resource-simple username: ((docker_hub_username)) password: ((docker_hub_password)) - name: slack-notification @@ -264,10 +264,13 @@ resources: icon: content-save-outline source: bucket: ((s3_prod_bucket)) - access_key_id: ((s3_prod_accesskey)) - secret_access_key: ((s3_prod_secretkey)) + access_key_id: ((s3_svc_accesskey)) + secret_access_key: ((s3_svc_secretkey)) + aws_role_arn: arn:aws:iam::((s3_svc_account_id)):role/((s3_svc_user)) + aws_session_name: upload-website region_name: ((s3_region)) path: snapshot/STS4/vscode-extensions + change_dir_to: website options: - "--acl public-read" - name: slack-notification