Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

Allow building and pushing images on another branch #25

Merged
merged 5 commits into from
Nov 6, 2016
Merged

Conversation

SamLau95
Copy link
Member

@SamLau95 SamLau95 commented Nov 6, 2016

@derrickmar @SaladRaider @allanlwu @jiefugong

Before, all images are pushed with the SHA and the latest tag.

With this commit, pushing an image will tag it with the branch name as
well for easier use while developing.

Unfortunately, k8s doesn't support templating yet
(kubernetes/kubernetes#23896) so you'll still
have to manually change the image tag in the manifest.yaml file back
and forth but it's definitely easier than before.

Now, the workflow is:

  1. Work on image
  2. Push with make release-all
  3. Edit manifest.yaml to use images for your branch to test
  4. Edit it back when making a PR.

Before, all images are pushed with the SHA and the `latest` tag.

With this commit, pushing an image will tag it with the branch name as
well for easier use while developing.

Unfortunately, k8s doesn't support templating yet
(kubernetes/kubernetes#23896) so you'll still
have to manually change the image tag in the `manifest.yaml` file back
and forth but it's definitely easier than before.

Now, the workflow is:

1. Work on image
2. Push with `make release-all`
3. Edit `manifest.yaml` to use images for your branch to test
4. Edit it back when making a PR.
Before, all images are pushed with the SHA and the `latest` tag.

With this commit, pushing an image will tag it with the branch name as
well for easier use while developing.

Unfortunately, k8s doesn't support templating yet
(kubernetes/kubernetes#23896) so you'll still
have to manually change the image tag in the `manifest.yaml` file back
and forth but it's definitely easier than before.

Now, the workflow is:

1. Work on image
2. Push with `make release-all`
3. Edit `manifest.yaml` to use images for your branch to test
4. Edit it back when making a PR.
Copy link
Contributor

@derrickmar derrickmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@SamLau95 SamLau95 merged commit b741d7a into master Nov 6, 2016
@SamLau95 SamLau95 deleted the build-branch branch November 7, 2016 00:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants