Commit 69f8283d authored by Alexx Perloff's avatar Alexx Perloff
Browse files

Change the variable sandboxing and change an echo statement.

parent 03bf9e13
Pipeline #1542285 failed with stage
in 1 minute and 41 seconds
......@@ -8,7 +8,7 @@ before_script:
# Variables -------------------------------------------------------------------
variables:
COMMIT_HASH: $CI_COMMIT_SHORT_SHA
COMMIT_HASH: ${CI_COMMIT_SHORT_SHA}
PROJ_NAME: 'TreeMaker-cmssw-$CI_COMMIT_REF_NAME-${REPO_NAME}'
# Job templates ---------------------------------------------------------------
......@@ -29,11 +29,11 @@ variables:
# Build and push the image from the Dockerfile at the root of the project.
# To push to a specific docker tag, amend the --destination parameter, e.g. --destination $CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME
# See https://docs.gitlab.com/ee/ci/variables/predefined_variables.html#variables-reference for available variables
- echo "Building standalone image $BASE_IMAGE with $CMSSW_VERSION and $SCRAM_ARCH"
- echo "Building standalone image ${TO} with ${CMSSW_VERSION} and ${SCRAM_ARCH}" on ${DATE}
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- echo $CI_PROJECT_DIR/$CONTEXT_DIR/
- ls -lh $CI_PROJECT_DIR/$CONTEXT_DIR/
- /kaniko/executor --context $CI_PROJECT_DIR/$CONTEXT_DIR --dockerfile $CI_PROJECT_DIR/$CONTEXT_DIR/Dockerfile --destination $TO --build-arg=BUILD_DATE="$DATE" --build-arg=VERSION="$DATE" --build-arg=VCS_URL="$CI_REPOSITORY_URL" --build-arg=VCS_REF="$COMMIT_HASH" --build-arg BASEIMAGE="$BASE_IMAGE" --build-arg SCRAM_ARCH="$SCRAM_ARCH" --build-arg CMSSW_VERSION="$CMSSW_VERSION"
- echo ${CI_PROJECT_DIR}/${CONTEXT_DIR}/
- ls -alh ${CI_PROJECT_DIR}/${CONTEXT_DIR}/
- /kaniko/executor --context ${CI_PROJECT_DIR}/${CONTEXT_DIR} --dockerfile ${CI_PROJECT_DIR}/${CONTEXT_DIR}/Dockerfile --destination $TO --build-arg=BUILD_DATE="${DATE}" --build-arg=VERSION="${DATE}" --build-arg=VCS_URL="${CI_REPOSITORY_URL}" --build-arg=VCS_REF="$COMMIT_HASH" --build-arg BASEIMAGE="${BASE_IMAGE}" --build-arg SCRAM_ARCH="${SCRAM_ARCH}" --build-arg CMSSW_VERSION="${CMSSW_VERSION}"
# Jobs/Includes ---------------------------------------------------------------
include:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment