Closed frankscholten closed 5 years ago
The second build fails on CircleCI. It runs operator-sdk build containersol/externalsecret-operator
but cannot find the externalsecret-operator
binary. Locally the build works fine.
I don't understand what is going wrong.
@riccardomc Do you have an idea?
Step 5/12 : COPY build/_output/bin/externalsecret-operator ${OPERATOR}
COPY failed: stat /var/lib/docker/tmp/docker-builder729928230/build/_output/bin/externalsecret-operator: no such file or directory
Error: failed to output build image containersol/externalsecret-operator: (failed to exec []string{"docker", "build", "-f", "build/Dockerfile", "-t", "containersol/externalsecret-operator", "."}: exit status 1)
Usage:
operator-sdk build <image> [flags]
Flags:
--go-build-args string Extra Go build arguments as one string such as "-ldflags -X=main.xyz=abc"
-h, --help help for build
--image-build-args string Extra image build arguments as one string such as "--build-arg https_proxy=$https_proxy"
--image-builder string Tool to build OCI images. One of: [docker, podman, buildah] (default "docker")
Global Flags:
--verbose Enable verbose logging
make: *** [Makefile:11: build] Error 1
Exited with code 2```
Build is now successful. The working_directory
had to be added.
Found a bug in deployment.yaml
. It has a hardcoded tag. Tag should be determined based on branch name.
Codecov Report
0% <ø> (ø)
53.84% <ø> (ø)
81.81% <ø> (ø)
84.61% <ø> (ø)
Continue to review full report at Codecov.