-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
--imagestore is not enough for building/publishing images #20203
Comments
I just tried re-running the pipeline without any changes and the build step also fails:
|
@flouthoc mind peeking at this one? |
I'll check this, thanks for reporting @SeaLife |
Any updates? //EDIT Somehow my docker (dind) pipeline fails now as well because they changed something, i modified my podman pipeline to not use any XDG_* variable and omitted the stages:
- publish
variables:
PODMAN_BUILD_ARGS: --platform linux/amd64
podman:
image: quay.io/podman/stable
rules:
- exists:
- Dockerfile
stage: publish
script:
- >
podman build $PODMAN_BUILD_ARGS \
--label "org.opencontainers.image.title=$CI_PROJECT_TITLE" \
--label "org.opencontainers.image.url=$CI_PROJECT_URL" \
--label "org.opencontainers.image.created=$CI_JOB_STARTED_AT" \
--label "org.opencontainers.image.revision=$CI_COMMIT_SHORT_SHA" \
--label "org.opencontainers.image.version=$CI_COMMIT_REF_NAME" \
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA \
--file Dockerfile
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- podman tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA $CI_REGISTRY_IMAGE:latest
- podman push $CI_REGISTRY_IMAGE:latest |
A friendly reminder that this issue had no activity for 30 days. |
@SeaLife, @flouthoc It seems to be related (in some cases at least) to the Removing the Strangely enough on Possibly related to an incomplete first pull from my (local) repository mirror, then attempted a full pull to the docker.io Registry ? Not sure. I also had these issues "first-time" when simply issuing I have in
I am NOT using volumes (yet) so take these with a grain of salt.
To be honest, whenever this occurs, the only solution is to issue a TOTAL reset: |
Issue Description
Running podman throught Gitlab-CI docker executor with the latest image:
quay.io/podman/stable
.My Dockerfile to be built looks like this:
My .gitlab-ci.yaml looks like this:
Using the docker image XDG_DATA_HOME is not respected so i had to use --imagestore but maybe im just missing something.
I wanna push the image separately from the build command and i tried using
--imagestore
to do that. Building the image works just fine but publishing the image does not:Steps to reproduce the issue
Steps to reproduce the issue (mostly described above)
Describe the results you received
A file is somehow missing after building the image and telling podman to tag/push the image. (see log above)
Describe the results you expected
I expect the image to get tagged and pushed.
podman info output
Podman in a container
Yes
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
Gitlab-Runner / Gitlab CI/CD (Pipeline-Instruction in Bug description)
Additional information
No response
The text was updated successfully, but these errors were encountered: