Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Give master builds their own prerelease homes
Browse files Browse the repository at this point in the history
This prevents the Flux daemon from keeping track of (potentially)
hundreds of master build tags it is not making use of while keeping
them available to the public.
  • Loading branch information
hiddeco committed Apr 18, 2019
1 parent f37b02d commit c88d1a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ jobs:
- run: make all

- deploy:
name: Maybe push master image
name: Maybe push prerelease images
command: |
if [ -z "${CIRCLE_TAG}" -a "${CIRCLE_BRANCH}" == "master" ]; then
echo "$DOCKER_REGISTRY_PASSWORD" | docker login --username "$DOCKER_REGISTRY_USER" --password-stdin
docker push "docker.io/weaveworks/flux:$(docker/image-tag)"
docker push "docker.io/weaveworks/helm-operator:$(docker/image-tag)"
echo "$DOCKER_REGISTRY_PASSWORD" | docker login --username "$DOCKER_REGISTRY_USER" --password-stdin
docker tag "docker.io/weaveworks/flux:$(docker/image-tag)" "docker.io/weaveworks/flux-prerelease:$(docker/image-tag)"
docker push "docker.io/weaveworks/flux-prerelease:$(docker/image-tag)"
docker tag "docker.io/weaveworks/helm-operator:$(docker/image-tag)" "docker.io/weaveworks/helm-operator-prerelease:$(docker/image-tag)"
docker push "docker.io/weaveworks/helm-operator-prerelease:$(docker/image-tag)"
fi
- deploy:
Expand Down
8 changes: 4 additions & 4 deletions site/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ menu_order: 60
* [How is that different from a bash script?](#how-is-that-different-from-a-bash-script)
* [Why should I automate deployment?](#why-should-i-automate-deployment)
* [I thought Flux was about service routing?](#i-thought-flux-was-about-service-routing)
* [Are there nightly builds I can run?](#are-there-nightly-builds-i-can-run)
* [Are there prerelease builds I can run?](#are-there-prerelease-builds-i-can-run)
- [Technical questions](#technical-questions)
* [Does it work only with one git repository?](#does-it-work-only-with-one-git-repository)
* [Do I have to put my application code and config in the same git repo?](#do-i-have-to-put-my-application-code-and-config-in-the-same-git-repo)
Expand Down Expand Up @@ -81,12 +81,12 @@ There are some pretty good solutions for service routing:
[Envoy](https://www.envoyproxy.io/), [Istio](https://istio.io) for
example. We may return to the matter of staged deployments.

### Are there nightly builds I can run?
### Are there prerelease builds I can run?

There are builds from CI for each merge to master branch. See
[weaveworks/flux](https://hub.docker.com/r/weaveworks/flux/tags)
[weaveworks/flux-prerelease](https://hub.docker.com/r/weaveworks/flux-prerelease/tags)
and
[weaveworks/helm-operator](https://hub.docker.com/r/weaveworks/helm-operator/tags).
[weaveworks/helm-operator-prerelease](https://hub.docker.com/r/weaveworks/helm-operator-prerelease/tags).

## Technical questions

Expand Down

0 comments on commit c88d1a1

Please sign in to comment.