change from sync to cp

This commit is contained in:
neil 2022-11-19 15:10:11 +08:00
parent 875e931dd1
commit c61111822c

View file

@ -97,10 +97,11 @@ jobs:
BUCKET=$(aws s3 ls | grep $(echo teaxyz-pr-$GITHUB_REF_SLUG_URL | sed "s/-merge//") | grep -o '[^ ]*$') BUCKET=$(aws s3 ls | grep $(echo teaxyz-pr-$GITHUB_REF_SLUG_URL | sed "s/-merge//") | grep -o '[^ ]*$')
echo "bucket=$BUCKET" >> $GITHUB_OUTPUT echo "bucket=$BUCKET" >> $GITHUB_OUTPUT
- name: sync package images from prod to preview bucket - name: cp package images from prod to preview bucket
run: | run: |
aws s3 sync s3://www.tea.xyz/Images/packages \ aws s3 cp s3://www.tea.xyz/Images/packages \
s3://$NEW_BUCKET/Images/packages s3://$NEW_BUCKET/Images/packages \
--recursive
env: env:
NEW_BUCKET: ${{ steps.DEPLOY_BUCKET.outputs.bucket }} NEW_BUCKET: ${{ steps.DEPLOY_BUCKET.outputs.bucket }}