-
Notifications
You must be signed in to change notification settings - Fork 38
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
Using push_only
option causes the job to fail
#46
Comments
I found a workaround, but I don't think it's elegant, and I feel like the action could be improved to avoid this step. Before running this step, use
Ideally, you could just build the image and name it properly in the same step. However, there are other actions which are rather rigid in their naming conventions. As an example (and how I encountered it), Jib creates the images with fully-qualified names, not just the image name. Thus, introducing a step like this is needed. If it is a requirement that the image be named in a particular way, at minimum that could be in the documentation. |
Thanks @jwickham-patchfox for reporting this. |
okay, awesome thank you! I'll take a look |
@jwickham-patchfox Just tested and released |
I'm configuring an action to push an image built by a previous step and consequently am using the
push_only
option. However, this seems to cause the build to fail. Can you provide some guidance or verify that this is broken please?action.yaml:
output:
Reading the logs and the
entrypoint.sh
code, I believe what is happening is theTEMP_IMAGE_NAME
is set toIMAGE_NAME:temporary
(note thetemporary
tag), then later in the loop over image tags, and the code creates the fully qualified image name with the specified image tag (e.g.develop
orlatest
, whatever is configured inimage_tag
in the yaml). After this, we getwhich clearly is attempting to take the temp image which would have been built had I built it and create a new tag from it. However, since the build step didn't happen, it's attempting to create a new image tag from a nonexistent image (the one with
:temporary
), thus the attempt to create the:develop
tag fails (this is theError response from daemon: no such image: [.....]myimage:temporary
line above). Since that fails, when it tries to push the:develop
image, that image doesn't exist, causing thetag does not exist
error.Ideally, if doing a push-only solution, the
TEMP_IMAGE_NAME
wouldn't be used since we're not building a temporary image.If I'm using this incorrectly, can you please provide more detailed instructions on how to build an image in a previous step and then upload it here?
Thanks much!
The text was updated successfully, but these errors were encountered: