File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,11 @@ file_name=${s3_url%/}
6
6
file_name=${file_name##*/ }
7
7
8
8
# Download from S3 then upload to GCP
9
- aws s3 cp $s3_url . --recursive --no-progress
9
+ dir=s3_download_$file_name
10
+ mkdir $dir
11
+ aws s3 cp $s3_url ./$dir --recursive --no-progress
10
12
echo " -------"
11
- ls
13
+ ls $dir
12
14
echo " -------"
13
- gcp storage cp $gcp_url ./$file_name --recursive
14
- rm -rf $file_name
15
+ gcloud storage cp $gcp_url ./$dir --recursive
16
+ rm -rf dir
Original file line number Diff line number Diff line change 27
27
steps :
28
28
- name : Authenticate to GCP
29
29
run : |
30
- json='${{ secrets.CDN_SPRING_IO_BACKUP_GCP_BUCKET_JSON }}'
31
30
echo '${{ secrets.CDN_SPRING_IO_BACKUP_GCP_BUCKET_JSON }}' > ./gcp.json
32
31
gcloud auth activate-service-account --key-file=./gcp.json
33
32
rm -f gcp.json
@@ -37,15 +36,14 @@ jobs:
37
36
.github/scripts
38
37
- name : Download from S3, Upload to GCP
39
38
run : |
40
- url_path=spring-tools/release/TOOLS/sts4-language-server-integrations/${{ inputs.ls_version }}
41
-
42
39
echo "Copying Eclipse LS extensions ${{ inputs.ls_version }} to GCP..."
43
- ${{ github.workspace }}/.github/scripts/copy-from-s3-to-gcp.sh s3://$AWS_S3_BUCKET/$url_path gs://gcp-test-spring-io/$url_path
40
+ url_path=spring-tools/release/TOOLS/sts4-language-server-integrations/${{ inputs.ls_version }}
41
+ gcloud storage cp s3://$AWS_S3_BUCKET/$url_path gs://gcp-test-spring-io/$url_path --recursive
44
42
45
43
echo "Copying Eclipse Distro P2 repos ${{ inputs.ls_version }} to GCP..."
46
44
url_path=spring-tools/release/TOOLS/sts4/update/${{ inputs.release_version }}.RELEASE
47
- ${{ github.workspace }}/.github/scripts/copy-from-s3-to-gcp.sh s3://$AWS_S3_BUCKET/$url_path gs://gcp-test-spring-io/$url_path
45
+ gcloud storage cp s3://$AWS_S3_BUCKET/$url_path gs://gcp-test-spring-io/$url_path --recursive
48
46
49
47
echo "Copying Eclipse Distros ${{ inputs.release_version }} to GCP..."
50
48
url_path=spring-tools/release/STS4/${{ inputs.release_version }}.RELEASE/dist
51
- ${{ github.workspace }}/.github/scripts/copy-from-s3-to-gcp.sh s3://$AWS_S3_BUCKET/$url_path gs://gcp-test-spring-io/$url_path
49
+ gcloud storage cp s3://$AWS_S3_BUCKET/$url_path gs://gcp-test-spring-io/$url_path --recursive
You can’t perform that action at this time.
0 commit comments