Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmssw-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TreeMaker
cmssw-docker
Commits
69f8283d
Commit
69f8283d
authored
5 years ago
by
Alexx Perloff
Browse files
Options
Downloads
Patches
Plain Diff
Change the variable sandboxing and change an echo statement.
parent
03bf9e13
No related branches found
No related tags found
No related merge requests found
Pipeline
#1542285
failed
5 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-5
5 additions, 5 deletions
.gitlab-ci.yml
with
5 additions
and
5 deletions
.gitlab-ci.yml
+
5
−
5
View file @
69f8283d
...
...
@@ -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 -
a
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
}
"
# Jobs/Includes ---------------------------------------------------------------
include
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment