microservices-demo/hack
Ahmet Alp Balkan f3e29f7450
hack: fix release scripts (#157)
Previous release script wasn't committing/tagging in the right order.
Also made scripts resistant to:
* empty env vars
* current workdir the script is invoked from

cc: @m-okeefe
2019-02-20 11:07:26 -08:00
..
make-docker-images.sh hack: fix release scripts (#157) 2019-02-20 11:07:26 -08:00
make-release-artifacts.sh hack: fix release scripts (#157) 2019-02-20 11:07:26 -08:00
make-release.sh hack: fix release scripts (#157) 2019-02-20 11:07:26 -08:00
README.md Adds make-release script, static k8s manifests (#132) 2019-01-29 11:23:33 -08:00

hack/

This directory provides scripts for building and pushing Docker images, and tagging new demo releases.

env variables

  • TAG - git release tag / Docker tag.
  • REPO_PREFIX - Docker repo prefix to push images. Format: $user/$project. Resulting images will be of the format $user/$project/$svcname:$tag (where svcname = adservice, cartservice, etc.)

scripts

  1. ./make-docker-images.sh: builds and pushes images to the specified Docker repository.
  2. ./make-release-artifacts.sh: generates a combined YAML file with image $TAG at: ./release/kubernetes-manifests/demo.yaml.
  3. ./make-release.sh: runs scripts 1 and 2, then runs git tag / pushes updated manifests to master.