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

Update docs release script so we can have autodeploys #10006

Merged
merged 1 commit into from
Jan 12, 2015

Conversation

jessfraz
Copy link
Contributor

@jessfraz jessfraz commented Jan 9, 2015

to docs.master.dockerproject.com.

  • Make the invaidation profile the bucket variable, not hard coded.
  • Add no cache variable for settings cache to "no-cache"

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle jess@docker.com (github: jfrazelle)

@jessfraz
Copy link
Contributor Author

jessfraz commented Jan 9, 2015

@SvenDowideit @tianon I want/need this now for autodeploy of docs :D

@jessfraz jessfraz force-pushed the docs-release-fixes branch 2 times, most recently from 6d436e9 to 12a86e5 Compare January 9, 2015 20:56
@tianon
Copy link
Member

tianon commented Jan 9, 2015

Ugg LGTM lol

@jessfraz
Copy link
Contributor Author

jessfraz commented Jan 9, 2015

omg really on the first try :D I was so careful w tabs 🎉

@jessfraz
Copy link
Contributor Author

jessfraz commented Jan 9, 2015

i am going to bask in this glory all day

@@ -83,7 +83,7 @@ build: bundles
docker build -t "$(DOCKER_IMAGE)" .

docs-build:
git diff --name-status upstream/release..upstream/docs docs/ > docs/changed-files
( git remote | grep -v upstream ) || git diff --name-status upstream/release..upstream/docs docs/ > docs/changed-files
Copy link
Contributor

Choose a reason for hiding this comment

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

mmm, I was thinking to change this to detecting what the user had aliased the github.com/docker/docker repo to

@SvenDowideit
Copy link
Contributor

meh. LGTM, or you can make it even more awesome :D

@jessfraz
Copy link
Contributor Author

hmmm hard to do that in one line on the makefile but I was planning on a cleanup PR after this :) i saw a few other thing hehe

@SvenDowideit
Copy link
Contributor

sweet :)

@@ -78,6 +78,11 @@ upload_current_documentation() {
src=site/
dst=s3://$BUCKET$1

cache="max-age=3600"
if [ ! -z "$NOCACHE" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

Wait, what's this [ ! -z ... ] nonsense? Why not just [ "$NOCACHE" ]?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dammmmiiitttttt I was so close to being perfect

Copy link
Member

Choose a reason for hiding this comment

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

Also, you have some unnecessary interpolation in this same file's changes that I'll leave as an exercise for you to figure out where is at. 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oooooo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i don't see it 😰

Copy link
Member

Choose a reason for hiding this comment

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

cache="max-age=3600"

and

cache="no-cache"

@@ -158,4 +163,4 @@ sed -i "s/^site_url:.*/site_url: \/$MAJOR_MINOR\//" mkdocs.yml
echo "Building the /$MAJOR_MINOR/ documentation"
build_current_documentation
upload_current_documentation "/$MAJOR_MINOR/"
invalidate_cache "/$MAJOR_MINOR"
[ "$NOCACHE" ] || invalidate_cache "/$MAJOR_MINOR"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's funny bc i did that here and forgot to fix the other, next time im shooting for 100% awesomeness

@jessfraz
Copy link
Contributor Author

is anything missing for this... I need this so my auto deploy script stops failing :P

@@ -78,6 +78,11 @@ upload_current_documentation() {
src=site/
dst=s3://$BUCKET$1

cache="max-age=3600"
if [ "$NOCACHE" ]; then
cache="no-cache"
Copy link
Member

Choose a reason for hiding this comment

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

If you want me to review with my super pedantic hat on, this (and the one two lines above) are the ones I was referring to where double quotes aren't actually necessary. 👍

Copy link
Member

Choose a reason for hiding this comment

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

(and if this were in project/ or contrib/, these would definitely need fixing 😉)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it actually needs them tho in the shelling out later, I tried without and it doesn't set properly in aws script then :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

let me try again tho

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nm that works, im going crazy, I was like but it should work.... ok updated lol

to docs.master.dockerproject.com.

- Make the invaidation profile the bucket variable, not hard coded.
- Add no cache variable for settings cache to "no-cache"

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
@tianon
Copy link
Member

tianon commented Jan 12, 2015

LGTM

jessfraz pushed a commit that referenced this pull request Jan 12, 2015
Update docs release script so we can have autodeploys
@jessfraz jessfraz merged commit 1781fed into moby:master Jan 12, 2015
@jessfraz jessfraz deleted the docs-release-fixes branch January 12, 2015 18:03
SvenDowideit pushed a commit to SvenDowideit/docker that referenced this pull request Jan 27, 2015
Update docs release script so we can have autodeploys
(cherry picked from commit 1781fed)

Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <jfrazelle@users.noreply.github.com> (github: SvenDowideit)
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.

None yet

3 participants