You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on implementing nx-container on Bitbucket Pipelines with Kaniko engine (as it's only engine able to work in BB)
I discovered that when Kaniko will not find the right pair of credentials and fails the whole build, nx-container don't see any issue and reports success
Kaniko executor response while running manually from nx-kaniko image:
/workspace # executor --context /workspace --destination example/image:latest
error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: checking push permission for"example/image:latest": POST https://index.docker.io/v2/example/image/blobs/uploads/: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:example/image Type:repository] map[Action:push Class: Name:example/image Type:repository]]
/workspace # echo $?
1
/workspace #
In CI last few lines of the successful build are:
> Bake definition file
{
"target": {
"container-metadata-action": {
"tags": [
"example/image:kaniko",
"example/image:sha-34a567f"
],
"labels": {
(REDACTED)
},
"args": {
"DOCKER_META_IMAGES": "example/image",
"DOCKER_META_VERSION": "kaniko"
}
}
}
}
[command]/kaniko/executor --dockerfile /opt/atlassian/pipelines/agent/build/apps/example/Dockerfile --label (REDACTED)--destination example/image:kaniko --destination example/image:sha-34a567f --cache=true --use-new-run --context=.
error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: checking push permission for "example/image:kaniko": POST https://index.docker.io/v2/library/example/blobs/uploads/: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name: example/image Type:repository] map[Action:push Class: Name:example/image Type:repository]]
> Removing temp folder /tmp/docker-build-push-NBJbdk
> NX Successfully ran target build-docker for 2 projects and 3 tasks they depend on
to build the images, I have used command npx nx affected --target=build-docker --base="origin/main" --head=HEAD --configuration=production --parallel=1
While working on implementing nx-container on Bitbucket Pipelines with Kaniko engine (as it's only engine able to work in BB)
I discovered that when Kaniko will not find the right pair of credentials and fails the whole build, nx-container don't see any issue and reports success
Kaniko executor response while running manually from nx-kaniko image:
In CI last few lines of the successful build are:
to build the images, I have used command
npx nx affected --target=build-docker --base="origin/main" --head=HEAD --configuration=production --parallel=1
Packages versions:
nx-kaniko image version:
gperdomor/nx-kaniko:18.12.0-alpine
The text was updated successfully, but these errors were encountered: