Commit Graph
36 Commits
Author SHA1 Message Date
Matthias Radestock 69c935a6e8 Make latest_release description link to real release
Closes #1399.
2015-09-09 19:52:08 +01:00
Adam Harrison 4dbccea5df Add missing quotes 2015-09-07 16:38:02 +01:00
Adam Harrison 6f672f9bc1 Infer release type
Script adjusts its behaviour based on the format of the version tag.
2015-09-04 15:44:48 +01:00
Adam Harrison 6a5df80bda Fix latest_release hash test
Obtain the version and latest_release tag commit hashes before changing
into the cloned repository so that all tagging and pushing happens on
the outer repository.
2015-09-02 14:13:11 +01:00
Adam Harrison b13baccbd2 Introduce draft step
The publish stage has been split into two pieces - a draft step that
creates a draft version release in Github and a publish step that
publishes the draft, updates `latest_release` and pushes images to
DockerHub.

It is also possible to specify `--pre-release` to draft. Once published
such a release will be marked with a prominent warning in GitHub;
additionally we do not update `latest_release` in GitHub nor push an
update to the `latest` tag in DockerHub.
2015-09-01 17:04:11 +01:00
Adam Harrison 82f2f7b2b9 Check for required tooling at top level
Pull common checks out to top level in preparation for the introduction
of an additional process step.
2015-09-01 17:04:11 +01:00
Adam Harrison f48a4373d1 Allow freeform version tags
To support arbitrarily named pre-releases we no longer impose any
restrictions on the format of the most recent annotated tag - instead we
expect to find a single annotated tag pointing at HEAD of the current
branch and assume this is the version to release.
2015-09-01 17:04:11 +01:00
Matthias Radestock 5b04efac7c move weaver 2015-06-02 14:04:02 +01:00
Matthias Radestock cbe73e7645 switch dockerhub user from zettio to weaveworks 2015-04-21 15:37:41 +01:00
Bryan Boreham 642cc3f00e Change release GitHub user name from zettio to weaveworks 2015-04-09 17:32:36 +01:00
Matthias Radestock b1ca832ed5 re-instate 'make publish'
and call it from the release script
2015-01-08 20:06:00 +00:00
Matthias Radestock 89cb1af996 use new Makefile DOCKERHUB_USER override 2015-01-08 19:22:03 +00:00
Matthias Radestock 1a4aceea21 make various release script vars overridable
and pass SUDO to the `make` invocation
2015-01-08 19:05:25 +00:00
Matthias Radestock 6c0218d26a oops 2015-01-08 17:00:59 +00:00
Matthias Radestock 79b1de5483 add 'sudo' to docker commands in release script
overridable with SUDO env var
2015-01-04 09:57:40 +00:00
Matthias Radestock e33885ecca wire weavetools into release 2015-01-01 11:51:15 +00:00
Matthias Radestock fd6f65e28f correct markdown for changelog 2014-12-30 17:32:23 +00:00
Matthias Radestock edabd8393d cosmetic 2014-12-30 17:24:40 +00:00
Michael Bridgen d3002384d7 Also push the :latest tags to Dockerhub when publishing 2014-12-30 16:01:10 +00:00
Michael Bridgen 82dfe1cc02 Upload the release artefact to a "latest_release" release
We would like to have a stable URL for the most recently released
script, so that we can mention it in the README and people can use it
in update scripts.

Since GitHub's releases/latest URL redirects, and anyway doesn't work
for downloads, we have to create (possibly delete first) a release
tagged "latest_release" and update it.
2014-12-29 18:28:02 +00:00
Matthias Radestock cca0f5fc79 don't allow lightweight tags after all 2014-12-29 14:27:21 +00:00
Matthias Radestock 50d94529bf accept lightweight tags 2014-12-29 13:49:46 +00:00
Matthias Radestock d31a4ea331 more idiomatic go build time variable setting
avoiding the use of 'sed'
2014-12-29 13:27:35 +00:00
Matthias Radestock 7c8586b576 nicer error when there is no version tag 2014-12-29 12:27:42 +00:00
Michael Bridgen 6c2bef5f88 Missed change of command in usage message 2014-12-29 12:05:38 +00:00
Matthias Radestock 3e1d96995a cosmetic 2014-12-29 12:01:29 +00:00
Michael Bridgen f842b22eb8 Do better with checking the changelog
Before, this could fail without a message if there was a changelog but
no matching line.

Also change the changelog format
      == Release v0.0.1
to
      == Release 0.0.1
2014-12-24 12:44:19 +00:00
Michael Bridgen 8b783af832 Quote all echoings and be consistent about the message prefix 2014-12-24 12:04:53 +00:00
Michael Bridgen b0b7649c8e Switch to proper github and dockerhub repo 2014-12-24 11:04:52 +00:00
Michael Bridgen b014d98c78 Put versions in the script and weavedns too, and report them
sudo weave version
2014-12-24 11:04:52 +00:00
Michael Bridgen 0348767d73 prepare -> build to better avoid mistakes 2014-12-24 11:04:52 +00:00
Michael Bridgen ef82e81c3f Push tagged images to docker 2014-12-24 11:04:52 +00:00
Michael Bridgen 801ca43fbf Better (working) way of checking for a release 2014-12-24 11:04:52 +00:00
Michael Bridgen ab4aa21cca Up to the point of making a git release
(under my own account for the minute)
2014-12-24 11:04:52 +00:00
Michael Bridgen ccf7e9993a Add version reporting to weaver 2014-12-24 11:04:51 +00:00
Michael Bridgen bfc9df4d25 Skeleton of a release script 2014-12-24 11:04:51 +00:00