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

Build: do not upload build.tool to production S3 #9098

Merged
merged 10 commits into from
Apr 14, 2022

Conversation

humitos
Copy link
Member

@humitos humitos commented Apr 12, 2022

Avoid uploading the .tar.gz to production S3 since we will be managing this via
CircleCI and an AWS orbs. See
readthedocs/readthedocs-docker-images#179

We need to keep the upload part for development environment, tho.

Avoid uploading the .tar.gz to production S3 since we will be managing this via
CircleCI and an AWS orbs. See
readthedocs/readthedocs-docker-images#179

We need to keep the upload part for development environment, tho.
@humitos humitos force-pushed the humitos/build-tool-no-upload-production branch from 167b14d to 337c36b Compare April 13, 2022 13:59
@humitos humitos requested a review from agjohnson April 14, 2022 10:38
@humitos humitos self-assigned this Apr 14, 2022
@humitos humitos marked this pull request as ready for review April 14, 2022 10:38
@humitos humitos requested a review from a team as a code owner April 14, 2022 10:38
Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

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

Looks great!

AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY:-password}"

if [[ -z $AWS_REGION ]]
if [[ -z $CIRCLECI ]]
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed this on the shell scripting on the ops side of this change as well, and a few spots above, but just to note: when using variables in sh/bash, it's best to quote them:

https://tldp.org/LDP/abs/html/quotingvar.html

We don't expect are any problematic characters in these variables, so this isn't an issue.

I've definitely been bit by unquoted variables in the past, usually around string comparisons.

Suggested change
if [[ -z $CIRCLECI ]]
if [[ -z "$CIRCLECI" ]]

@agjohnson
Copy link
Contributor

Failure is docs, merging this.

@agjohnson agjohnson merged commit 464f20e into main Apr 14, 2022
@agjohnson agjohnson deleted the humitos/build-tool-no-upload-production branch April 14, 2022 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants