From 68e5ed575f13b6f96f6f6c6a76532289f3372058 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 3 May 2016 11:44:07 +0100 Subject: [PATCH] Pin wordepress version Use specific versions of wordepress for live and dev publishing --- circle.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 6438c976..eb81a722 100644 --- a/circle.yml +++ b/circle.yml @@ -18,7 +18,6 @@ dependencies: - "~/docker" post: - "sudo apt-get update && sudo apt-get install bc jq" - - go get github.com/weaveworks/wordepress/cmd/wordepress - curl https://sdk.cloud.google.com | bash - bin/setup-circleci-secrets "$SECRET_PASSWORD" - "mkdir -p $(dirname $SRCDIR) && cp -r $(pwd)/ $SRCDIR" @@ -63,14 +62,17 @@ deployment: - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS - cd $SRCDIR; make clean-bin - cd $SRCDIR; make publish + - go get github.com/weaveworks/wordepress && cd /home/ubuntu/src/github.com/weaveworks/wordepress && git checkout master && cd cmd/wordepress && go get - cd $SRCDIR; bin/publish-site "$WP_DEV_URL" "$WP_DEV_USER" "$WP_DEV_PASSWORD" issues: branch: /issues\/.*/ owner: weaveworks commands: + - go get github.com/weaveworks/wordepress && cd /home/ubuntu/src/github.com/weaveworks/wordepress && git checkout master && cd cmd/wordepress && go get - cd $SRCDIR; bin/publish-site "$WP_DEV_URL" "$WP_DEV_USER" "$WP_DEV_PASSWORD" release: branch: /[0-9]+\.[0-9]+/ owner: weaveworks commands: + - go get github.com/weaveworks/wordepress && cd /home/ubuntu/src/github.com/weaveworks/wordepress && git checkout v0.1.0 && cd cmd/wordepress && go get - cd $SRCDIR; bin/publish-site "$WP_LIVE_URL" "$WP_LIVE_USER" "$WP_LIVE_PASSWORD"