Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 5a35f2b

Browse files
Update release instructions (#335)
1 parent 634a047 commit 5a35f2b

File tree

2 files changed

+11
-24
lines changed

2 files changed

+11
-24
lines changed

.goreleaser.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ dockers:
1313
image_templates:
1414
- "shopify/kubeaudit:latest"
1515
- "shopify/kubeaudit:{{ .Tag }}"
16-
- "shopify/kubeaudit:v{{ .Major }}"
1716
- "shopify/kubeaudit:v{{ .Major }}.{{ .Minor }}"
1817
builds:
1918
- goos:

docs/release.md

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,27 @@ git tag -a v0.11.6 -m "v0.11.6"
2424
git push origin v0.11.6
2525
```
2626

27-
5. You will need a Github token in order for Goreleaser to be able to create a release in Github. If you already have one, skip to the next step.
27+
5. Login to Docker
28+
29+
Login to the Shopify Docker account using `docker login`. Find the credentials in password manager.
30+
31+
6. You will need a Github token in order for Goreleaser to be able to create a release in Github. If you already have one, skip to the next step.
2832

2933
[Create a Github token](https://github.com/settings/tokens/new) with the `repo` scope.
3034

31-
6. Run Goreleaser
35+
7. Run Goreleaser
3236

3337
Make sure you have Docker running.
3438

3539
```
3640
GITHUB_TOKEN=<YOUR TOKEN> goreleaser --rm-dist
3741
```
3842

39-
7. Publish the release in Github
43+
8. Logout of docker
44+
45+
Logout of the Shopify Docker account: `docker logout`
46+
47+
9. Publish the release in Github
4048

4149
Goreleaser is set to draft mode which means it will create a draft release in Github, allowing you to double check the release and make changes to the Changelog. Find the [draft release](https://github.com/Shopify/kubeaudit/releases) and make sure there are no commits to master since the release.
4250

@@ -49,23 +57,3 @@ Click `Edit` on the right of the draft release and tidy up the Changelog if nece
4957
```
5058

5159
Click on `Publish release` at the bottom.
52-
53-
8. Publish Docker images
54-
55-
Since Goreleaser is set to draft mode, it will build Docker images but not publish them. You can see the images with `docker images`.
56-
57-
Login to the Shopify Docker account using `docker login`. Find the credentials in password manager.
58-
59-
Push up the following three images:
60-
61-
- latest: `shopify/kubeaudit:latest`
62-
- patch: `shopify/kubeaudit:v0.<MINOR>.<PATCH>` for example `shopify/kubeaudit:v0.11.6`
63-
- minor: `shopify/kubeaudit:v0.<MINOR>` for example `shopify/kubeaudit:v0.11`
64-
65-
```
66-
docker push shopify/kubeaudit:latest
67-
docker push shopify/kubeaudit:v0.<MINOR>.<PATCH>
68-
docker push shopify/kubeaudit:v0.<MINOR>
69-
```
70-
71-
Logout of the Shopify Docker account: `docker logout`

0 commit comments

Comments
 (0)