8
8
required : true
9
9
type : string
10
10
release_version :
11
- description : Release version (i.e. 4.20.1)
11
+ description : Release version (i.e. 4.20.1.RELEASE )
12
12
required : true
13
13
type : string
14
14
19
19
AWS_ENDPOINT_URL_S3 : ${{ secrets.CDN_S3_ENDPOINT }}
20
20
AWS_S3_BUCKET : ${{ secrets.CDN_BUCKET }}
21
21
DOWNLOAD_URL_ROOT : https://cdn.spring.io/spring-tools
22
+ GCP_BUCKET : gs://cdn-spring-io
22
23
23
24
jobs :
24
25
backup-eclipse-releases-to-gcp :
@@ -27,23 +28,19 @@ jobs:
27
28
steps :
28
29
- name : Authenticate to GCP
29
30
run : |
30
- echo -e "${{ secrets.CDN_SPRING_IO_BACKUP_GCP_BUCKET_JSON }} " > ~/gcp.json
31
- gcloud auth activate-service-account --key-file=~/gcp.json
32
- - uses : actions/checkout@v4
33
- with :
34
- sparse-checkout : |
35
- .github/scripts
36
- - name : Download from S3, Upload to GCP
31
+ echo '${{ secrets.CDN_SPRING_IO_BACKUP_GCP_BUCKET_JSON }}' > ./gcp.json
32
+ gcloud auth activate-service-account --key-file=./gcp.json
33
+ rm -f gcp.json
34
+ - name : Copy from S3 to GCP
37
35
run : |
36
+ echo "Copying Eclipse LS extensions ${{ inputs.ls_version }} to GCP..."
38
37
url_path=spring-tools/release/TOOLS/sts4-language-server-integrations/${{ inputs.ls_version }}
39
-
40
- echo "Copying Eclipse LS extensions ${{ inputs.ls_version }} to GCP..."
41
- ${{ github.workspace }}/.github/scripts/copy-from-s3-to-gcp.sh s3://$AWS_S3_BUCKET/$url_path gs://gcp-test-spring-io/$url_path
38
+ gcloud storage cp s3://$AWS_S3_BUCKET/$url_path $GCP_BUCKET/$url_path --recursive
42
39
43
- echo "Copying Eclipse Distro P2 repos ${{ inputs.ls_version }} to GCP..."
44
- url_path=spring-tools/release/TOOLS/sts4/update/${{ inputs.release_version }}.RELEASE
45
- ${{ github.workspace }}/.github/scripts/copy-from-s3-to-gcp.sh s3://$AWS_S3_BUCKET/$url_path gs://gcp-test-spring-io/ $url_path
46
-
47
- echo "Copying Eclipse Distros ${{ inputs.release_version }} to GCP..."
48
- url_path=spring-tools/release/STS4/${{ inputs.release_version }}.RELEASE /dist
49
- ${{ github.workspace }}/.github/scripts/copy-from-s3-to-gcp.sh s3://$AWS_S3_BUCKET/$url_path gs://gcp-test-spring-io/ $url_path
40
+ echo "Copying Eclipse Distro P2 repos ${{ inputs.release_version }} to GCP..."
41
+ url_path=spring-tools/release/TOOLS/sts4/update/${{ inputs.release_version }}
42
+ gcloud storage cp s3://$AWS_S3_BUCKET/$url_path $GCP_BUCKET/ $url_path --recursive
43
+
44
+ echo "Copying Eclipse Distros ${{ inputs.release_version }} to GCP..."
45
+ url_path=spring-tools/release/STS4/${{ inputs.release_version }}/dist
46
+ gcloud storage cp s3://$AWS_S3_BUCKET/$url_path $GCP_BUCKET/ $url_path --recursive
0 commit comments