|
| 1 | +# Releases |
| 2 | + |
| 3 | +Making a dex release involves: |
| 4 | + |
| 5 | +* Tagging a git commit and pushing the tag to GitHub. |
| 6 | +* Building and pushing a Docker image. |
| 7 | +* Building, signing, and hosting an ACI. |
| 8 | + |
| 9 | +This requires the following tools. |
| 10 | + |
| 11 | +* rkt |
| 12 | +* Docker |
| 13 | +* [docker2aci](https://github.com/appc/docker2aci) |
| 14 | +* [acbuild](https://github.com/containers/build) (must be in your sudo user's PATH) |
| 15 | + |
| 16 | +And the following permissions. |
| 17 | + |
| 18 | +* Push access to the github.com/coreos/dex git repo. |
| 19 | +* Push access to the quay.io/coreos/dex Docker repo. |
| 20 | +* Access to the CoreOS application signing key. |
| 21 | + |
| 22 | +## Tagging the release |
| 23 | + |
| 24 | +Make sure you've [uploaded your GPG key](https://github.com/settings/keys) and |
| 25 | +configured git to [use that signing key]( |
| 26 | +https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work) either globally or |
| 27 | +for the Dex repo. Note that the email the key is issued for must be the email |
| 28 | +you use for git. |
| 29 | + |
| 30 | +``` |
| 31 | +git config [--global] user.signingkey "{{ GPG key ID }}" |
| 32 | +git config [--global] user.email "{{ Email associated with key }}" |
| 33 | +``` |
| 34 | + |
| 35 | +Create a signed tag at the commit you wish to release. This action will prompt |
| 36 | +you to enter a tag message, which can just be the release version. |
| 37 | + |
| 38 | +``` |
| 39 | +git tag -s v2.1.0-alpha ea4c04fde83bd6c48f4d43862c406deb4ea9dba2 |
| 40 | +``` |
| 41 | + |
| 42 | +Push that tag to the CoreOS repo. |
| 43 | + |
| 44 | +``` |
| 45 | +git push [email protected]:coreos/dex.git v2.1.0-alpha |
| 46 | +``` |
| 47 | + |
| 48 | +Draft releases on GitHub and summarize the changes since the last release. See |
| 49 | +previous releases for the expected format. |
| 50 | + |
| 51 | +https://github.com/coreos/dex/releases |
| 52 | + |
| 53 | +## Building the Docker image |
| 54 | + |
| 55 | +Build the Docker image and push to Quay. |
| 56 | + |
| 57 | +```bash |
| 58 | +# checkout the tag |
| 59 | +git checkout tags/v2.1.0-alpha |
| 60 | +# rkt doesn't play nice with SELinux, see https://github.com/coreos/rkt/issues/1727 |
| 61 | +sudo setenforce Permissive |
| 62 | +# will prompt for sudo password |
| 63 | +make docker-image |
| 64 | +sudo docker push quay.io/coreos/dex:v2.1.0-alpha |
| 65 | +``` |
| 66 | + |
| 67 | +## Building the ACI |
| 68 | + |
| 69 | +```bash |
| 70 | +# checkout the tag |
| 71 | +git checkout tags/v2.1.0-alpha |
| 72 | +# rkt doesn't play nice with SELinux, see https://github.com/coreos/rkt/issues/1727 |
| 73 | +sudo setenforce Permissive |
| 74 | +# will prompt for sudo password |
| 75 | +make aci |
| 76 | +# aci will be built at _output/image/dex.aci |
| 77 | +``` |
| 78 | + |
| 79 | +Sign the ACI using the CoreOS application signing key. Upload the ACI and |
| 80 | +signature to the GitHub release. |
0 commit comments