Build container and use it in pipeline #3851
Replies: 4 comments 3 replies
-
Could you try what's listed in the docs? They're using the https://woodpecker-ci.org/docs/usage/registries#local-images |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
You'd need to
Alternatively, don't use the buildx plugin but use raw (Not sure if all of this is worth it instead of pushing/pulling to a remote registry.) |
Beta Was this translation helpful? Give feedback.
-
Would be crazy if the following would work. Issue is I think that the registry can't be easily accessed from the docker host. steps:
- name: build # build a container (plugin-docker-buildx)
image: woodpeckerci/plugin-docker-buildx
settings:
registry: my-registry
repo: foo/bar
tags: latest
- name: run # use it in the next step
image: my-registry/foo/bar:latest # We would need to get access to the registry from the agent here somehow
pull: true
services:
- name: my-registry
image: registry:2 |
Beta Was this translation helpful? Give feedback.
-
How can I build a container (plugin-docker-buildx) and use it in the next step?
Error:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions