-
Notifications
You must be signed in to change notification settings - Fork 1
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
Failed to ensure git is spawnable by backmerge process. #29
Comments
Whut ... VerifyConditions works the first time but not the second time in success call 😰 ? |
To add to the weirdness: this appears to be related to the content of the FROM nginxdemos/hello The backmerge works fine. If I put back my original content of the The |
Are you extending this Dockerfile ? https://github.com/brendangeck/semantic-release-kaniko/blob/main/Dockerfile |
No, the FROM node:20.18.0-alpine3.20
# renovate: datasource=github-releases depName=chartmuseum/helm-push
ENV HELMPUSH_VERSION=v0.10.4
# Copy Kaniko executor from the Kaniko image
COPY --chmod=0775 --from=gcr.io/kaniko-project/executor:v1.23.2-slim /kaniko/executor /kaniko/executor
# Install helm binary
COPY --chmod=0775 --from=alpine/helm:3.16.2 /usr/bin/helm /usr/bin/helm
# hadolint ignore=DL3018,SC2015
RUN apk add --update --no-cache jq git docker-cli && \
helm plugin install https://github.com/chartmuseum/helm-push --version "${HELMPUSH_VERSION}" || true
# Install buildx plugin for Docker
# renovate: datasource=github-releases depName=docker/buildx
ENV BUILDX_VERSION=v0.17.1
ADD --chmod=775 https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-amd64 /root/.docker/cli-plugins/docker-buildx
WORKDIR /
# Copy over dependencies needed by npm
COPY package.json package-lock.json /
# Install semantic-release plugins listed in package.json
# hadolint ignore=SC2016,DL3016,SC2046
RUN jq -r '.dependencies | to_entries | map("\(.key)@\(.value)") | .[]' /package.json > /deps.txt && \
npm install -g --unsafe-perm $(cat /deps.txt) && \
rm -f /deps.txt /package.json /package-lock.json && \
npm cache clean --force
WORKDIR /workspace
ENTRYPOINT [ "/usr/local/bin/semantic-release" ]
CMD ["--help"] |
I did some more debugging / testing.. Added in outputs of As a test I replaced brendangeck/semantic-release-kaniko with codedependant/semantic-release-docker in the Semantic-Release configuration and the backmerge worked fine with the original Dockerfile. As the |
Well, fine by me if the issue is coming from another plugin 😂 |
It appears to be that case, but can't explain yet as to why this is any why it would affect this plugin. |
It does indeed look like an issue caused by Kaniko. The first This cannot be an issue of this plugin, so I'll close this issue. |
Issue opened here brendangeck/semantic-release-kaniko#19 following investigation |
It appears that problems of #17 have not been fully solved yet as there are still some cases where spawning Git appears to be problematic.
The verification is working:
Semantic-release proceeds with analyzing the commits, executing a build of a Docker container (using brendangeck/semantic-release-kaniko), creating a GitLab release and then fails in the backmerge process again:
The issue it comments on contains the following:
### Failed to ensure git is spwanable by backmerge process. N2: Command failed with ENOENT: git --version spawn git ENOENT
24.2.0
1.5.2
The text was updated successfully, but these errors were encountered: