Open valador opened 3 years ago
solution for debug version of executor: add in yml build args:
"--build-arg=C_SITE_USERNAME",
"--build-arg=C_SITE_PASSWORD",
"--build-arg=C_VERSION"
in dockerfile:
ARG C_SITE_USERNAME
ARG C_SITE_PASSWORD
ARG C_VERSION
ENV C_SITE_USERNAME=${C_SITE_USERNAME}
ENV C_SITE_PASSWORD=${C_SITE_PASSWORD}
ENV C_VERSION=${C_VERSION}
Stil bug with COPY in release version of executor, copy not worked as it should.
Actual behavior kaniko do not provide env in build stage? how to copy files in container?
executor:latest:
download.sh file in
/workspace/scripts/download.sh
if i addCOPY /workspace/scripts/download.sh /download.sh
error:why 2 and 3 workspace path?
executor:debug:
C_SITE_USERNAME not set
download.sh success copied in container withCOPY ./scripts/download.sh /download.sh
and run, but do not have env if i addRUN env
id Dockerfile - have onlyinstaller_type=server
i try add
no any effect i try delete ARG - no any effect i try delete all from Dockerfile - and only stay
no any effect, env do not have.
If i exec in debug container and start env - env have, but no in Dockerfile.
Expected behavior env in container copy my custom files in container
Dockerfile:
yml:
--cache
flag