Skip to content

Commit

Permalink
Simplify the release process
Browse files Browse the repository at this point in the history
  • Loading branch information
cnmcavoy committed Oct 17, 2023
1 parent 14338ab commit 795282b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
11 changes: 0 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,6 @@ docker.buildx.setup:
@docker buildx ls 2>/dev/null | grep -vq $(DOCKER_BUILDX_BUILDER) || docker buildx create --name $(DOCKER_BUILDX_BUILDER) --driver docker-container --driver-opt network=host --bootstrap --use
@$(OK) docker buildx setup

docker.promote:
@$(INFO) promoting $(SOURCE_TAG) to $(RELEASE_TAG)
docker manifest inspect $(IMAGE_REGISTRY):$(SOURCE_TAG) > .tagmanifest
for digest in $$(jq -r '.manifests[].digest' < .tagmanifest); do \
docker pull $(IMAGE_REGISTRY)@$$digest; \
done
docker manifest create $(IMAGE_REGISTRY):$(RELEASE_TAG) \
$$(jq -j '"--amend $(IMAGE_REGISTRY)@" + .manifests[].digest + " "' < .tagmanifest)
docker manifest push $(IMAGE_REGISTRY):$(RELEASE_TAG)
@$(OK) docker push $(RELEASE_TAG) \

# ====================================================================================
# Help

Expand Down
6 changes: 5 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ TODO: Migrate these to github actions.
1. Ensure the [CHANGELOG.md](CHANGELOG.md) is up to date.
2. Bump the [Chart.yaml](deploy/charts/cluster-config-maps/Chart.yaml) `version` or `appVersion` as needed.

### Release cluster-config-maps
### Test the build of cluster-config-maps

1. Build the csi driver: `make docker.build`

### Release cluster-config-maps

1. Build the csi driver: `git tag 0.x.x && git push --tags`

### Release Helm Chart

1. Regenerate the helm chart + docs: `helm.generate`

0 comments on commit 795282b

Please sign in to comment.