-
Notifications
You must be signed in to change notification settings - Fork 46
Pushing a Specific Build of a Book
Max Hufnagel edited this page Oct 27, 2015
·
1 revision
Follow the instruction below to push a specific builds using a combination of data from the Concourse ATC and the CLI:
- On Concourse, visit the specific successful staging build that you want to use for production.
- At the bottom of the build page, open the push to staging console.
- Search for 'Green build', which will be at the bottom of the page. You will see a line such as
Green build #20151023_1744 has been uploaded to S3 for docs-book-pivotalcf
. - Copy the build identifier from the above line. In this example, the build identifier is
20151023_1744
. - In your terminal, in the directory of the book that you want to push to production, run this command:
bundle exec bookbinder push_to_prod <build-identifier>
Note: We could potentially improve this interface by allowing users to specify the Concourse staging build number instead of the timestamp. To do this, we'd access the required information through an API call, using the Checkman Concourse script as an example.
We also think we could set up our S3 bucket as a Concourse resource that we then feed into the production job.
To push past versions, you would do the following
- Visit the resource page of the S3 bucket by clicking its name (i.e. resource page for the docs-mysql resource), and finding the version of the resource you want pushed to production.
- From the top down, click the power button icons for the refs until you've reached the version you want - this toggles which ones are being used.
- We would then use the most recent version of the resource that is marked as green for the production job.
When you toggle the resource versions, these changes persist.