Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(cdn): update action #618

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

ci(cdn): update action #618

wants to merge 2 commits into from

Conversation

Palke
Copy link
Collaborator

@Palke Palke commented Dec 10, 2024

No description provided.

AWS_S3_NAME: ${{ secrets.COMMON_COS_BUCKET }}
run: |
aws s3 sync ${{ env.SOURCE_DIR }} s3://${{ env.AWS_S3_NAME }}${{ env.DEST_DIR_A }} && aws s3 sync ${{ env.SOURCE_DIR }} s3://${{ env.AWS_S3_NAME }}${{ env.DEST_DIR_B }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned, be sure you are setting -- recursive and --endpoint-url when using the aws cli, as we are not hosting on AWS. I pinged you in Slack with the details.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COMMON_COS_ENDPOINT is the secret you can use to set the endpoint in the command.

Also, it would be safer to use cp over sync.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeffchew please review the latest. I have changed the setup to use directly aws cli. Also I did included the arguments from the original action --acl public-read --follow-symlinks as they were missing.

@Palke Palke requested a review from jeffchew December 17, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants