Skip to content

Commit cfd9a7d

Browse files
committed
conan upload on the fly authentication
No persistent storage between calls to "conan remote auth" and "conan upload", make sure CONAN_LOGIN_USERNAME and CONAN_PASSWORD env vars are available to allow "conan upload" to authenticate on the fly. Signed-off-by: Jean-Francois Panisset <[email protected]>
1 parent effc304 commit cfd9a7d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/common/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ ENV GCC_INSTALL_PREFIX=/opt/rh/${ASWF_DTS_PREFIX}-${ASWF_DTS_VERSION}/root/usr
162162
# With "conan create --profile" we no longer need to set a default profile
163163
ENV CONAN_HOME=${CONAN_USER_HOME}/.conan2
164164

165+
# Allow "conan upload" to authenticate without persistent storage
166+
ARG CONAN_LOGIN_USERNAME
167+
ENV CONAN_LOGIN_USERNAME=${CONAN_LOGIN_USERNAME}
168+
ARG CONAN_PASSWORD
169+
ENV CONAN_PASSWORD=${CONAN_PASSWORD}
170+
165171
RUN --mount=type=cache,target=${CONAN_USER_HOME}/d \
166172
--mount=type=cache,target=${CCACHE_DIR} \
167173
--mount=type=bind,rw,target=${CONAN_USER_HOME}/.conan2,source=packages/conan/settings \

0 commit comments

Comments
 (0)