Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question/feature/doc how do you recommend push and docker image/docker-compose up? #150

Closed
xenoterracide opened this issue Oct 1, 2020 · 1 comment · Fixed by #198
Closed

Comments

@xenoterracide
Copy link

xenoterracide commented Oct 1, 2020

currently you get an error that says that you can't do --load and --push together. How do you recommend accomplishing both? The reason I need to do this is I need to run docker compose up to do other actions, and I don't believe it will use the buildx cache. It would be good to update the docs with an example. here's my potential workflow ( may tweak it )

job1

  1. buildx builder target
  2. push builder
  3. cache builder

job2

  1. load builder cache
  2. bake, or otherwise build services based on builder
  3. docker-compose up
  4. run tests
  5. push final service images

I may simplify this and not push during the first job

@crazy-max
Copy link
Member

@xenoterracide You could export the resulted image in job1 like explained in #147 (comment) then in job2 download with actions/download-artifact the artifact, load it through docker load and use it through docker-compose.

You could also only have one job that builds and loads the image in Docker with this action. I will add an example in the README for this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants