Skip to content

Commit

Permalink
ci(cdn): update action (#618)
Browse files Browse the repository at this point in the history
* ci(cdn): update action

* ci(cdn): use directly aws cli
  • Loading branch information
Palke authored Jan 8, 2025
1 parent 214dedd commit bfd83ce
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/publish-cdn-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,16 @@ jobs:
run: yarn install
- name: Build cdn folder
run: yarn build:cdn
- uses: jakejarvis/s3-sync-action@be0c4ab89158cac4278689ebedd8407dd5f35a83 #v0.5.1
with:
args: --acl public-read --follow-symlinks
env:
AWS_S3_BUCKET: ${{ secrets.COMMON_COS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.COMMON_COS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.COMMON_COS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.COMMON_COS_REGION }}
AWS_S3_ENDPOINT: https://${{ secrets.COMMON_COS_ENDPOINT }}
SOURCE_DIR: 'cdn'
DEST_DIR: '/common/carbon/plex-test'
- uses: jakejarvis/s3-sync-action@be0c4ab89158cac4278689ebedd8407dd5f35a83 #v0.5.1
with:
args: --acl public-read --follow-symlinks
- name: Upload to S3 bucket
env:
AWS_S3_BUCKET: ${{ secrets.COMMON_COS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.COMMON_COS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.COMMON_COS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.COMMON_COS_REGION }}
AWS_DEFAULT_REGION: ${{ secrets.COMMON_COS_REGION }}
AWS_S3_NAME: ${{ secrets.COMMON_COS_BUCKET }}
AWS_S3_ENDPOINT: https://${{ secrets.COMMON_COS_ENDPOINT }}
SOURCE_DIR: 'cdn'
DEST_DIR: '/common/carbon-for-ibm-dotcom/plex-test'
DEST_DIR_A: '/common/carbon/plex-test'
DEST_DIR_B: '/common/carbon-for-ibm-dotcom/plex-test'
run: |
aws s3 cp ${{ env.SOURCE_DIR }} s3://${{ env.AWS_S3_NAME }}${{ env.DEST_DIR_A }} --endpoint-url ${{ env.AWS_S3_ENDPOINT }} --recursive --acl public-read --follow-symlinks && aws s3 cp ${{ env.SOURCE_DIR }} s3://${{ env.AWS_S3_NAME }}${{ env.DEST_DIR_B }} --endpoint-url ${{ env.AWS_S3_ENDPOINT }} --recursive --acl public-read --follow-symlinks

0 comments on commit bfd83ce

Please sign in to comment.