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
Can't get manifest plugin to work correctly (w/ Drone 1.0RC1) #10
Comments
|
Well, I switched from using Either way, the documentation should probably include a manifest template example. |
|
@djmaze do you mind sharing how you did it? I follow this pattern in a lot of places, built some really "interesting" Basically, I almost always follow the pattern:
Sounds like you figured it out in this plugin? |
|
Or is it that the manifest plugin only pushes the manifest, and assumes the images already exist, which is what the |
|
Are you using trimPrefix within your template? I found out that trimPrefix haven't been present in |
The docker plugin is used to build and push the images, the manifest plugin just defines the manifest and pushs it to the registry. |
|
Thanks @tboerger. I need to hop over to that repo and ask a question about my build pattern there. It looks like this cleanly handles the last stage (very similar to Phil Estes' manifest-tool, which I still use). The first stage is part of core drone, which leaves just the middle stages, all part of the docker plugin. I saw you opened that PR on "adding docs". Since @djmaze referenced the |
This plugin is using exactly that tool to push the manifests...
There is still no proper documentation for it. The template will be processed by the https://github.com/aymerick/raymond engine and handed over to manifest-tool. How the template could look like you can already see on most drone-plugins repos within the docker/ folder. |
Too funny! I believe he has wanted to retire it in favour of
Ah, it is just using the manifest yml that I will hop onto discourse to see about the rest of the pattern. Thanks for your assistance. |
|
@tboerger do we need to tag a new release so that
|
|
I don't really get why it has not pushed the manifest for 1, it's using the same code as the docker plugin: https://github.com/drone-plugins/drone-manifest/blob/master/tagging/tagging_test.go |
|
AFAIK this issue should be resolved, if you still encounter this issue please ping on this issue. |
|
I'm also stuck on this, that spec link is gone so I have no idea how to generate one. We also use a separate drone builder for amd64, and arm images, but |
|
Finally got it working! - name: push to docker manifest
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
target: "my_name/my_repo:${DRONE_TAG}"
template: "my_name/my_repo:${DRONE_TAG}-OS-ARCH"
platforms:
- linux/amd64
- linux/arm64
ignore_missing: true
when:
ref:
- refs/tags/* |
(cross-posted from discourse)
I want to generate a docker manifest in my pipeline. As I am using auto-tagging with the platform-specific images, the manifest should generate those versions (e.g.
0.9.3/0.9) as well.Since this is not properly documented with the manifest plugin, I've tried it this way:
But it seems Drone won't escape the variables inside the plugin settings.
My second approach was to use a manifest template with the
specandauto_tagoptions, so the config looks like this:This is not properly documented as well, so I took the template I found in the plugin's repository and adjusted it slightly for my image name. Using that, I get the following output in the manifest step:
What is the right way to do this?
The text was updated successfully, but these errors were encountered: