workflow icon indicating copy to clipboard operation
workflow copied to clipboard

Support building via slug image references

Open intellix opened this issue 8 years ago • 4 comments

In my quest to achieve pipelines in Deis, I've got 2x applications:

  • myproject
  • myproject-staging

Underneath the myproject-staging app I want a button: Promote to Production which when clicked will put the exact same image onto the production app (myproject).

It seems the way to get this working is to make an API call like:

POST `http://deis.${cluster}/${apiVersion}/apps/builds`
Data: {
  image: "home/myproject-staging:git-db6645f5/push/slug.tgz"
}

The problem is that this only works for Docker image references and doesn't support passing in a slug built reference. I'm not going to say buildpacks are a requirement for me right now, but it would allow me to implement pipelines for all application types.

intellix avatar Oct 16 '16 20:10 intellix

I like the idea! Heroku has a similar API for creating custom builds.

It would also be cool to be able to pull a tarball from anywhere, but that can be a future improvement.

Joshua-Anderson avatar Oct 17 '16 17:10 Joshua-Anderson

If the use case is just "promote to production" then that can be solved via deis pipeline:promote which is something that was proposed in https://github.com/deis/deis/issues/1318. That use case shouldn't be too hard to create a new feature request for, since we're just "promoting" the staging app's latest build to become the production app's latest build.

bacongobbler avatar Oct 17 '16 17:10 bacongobbler

Related issue: https://github.com/deis/workflow/issues/711

intellix avatar Mar 02 '17 13:03 intellix

This issue was moved to teamhephy/workflow#47

Cryptophobia avatar Mar 20 '18 20:03 Cryptophobia