Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DSS
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
xfsc
Dev Ops
Components
DSS
Commits
0d13b671
Commit
0d13b671
authored
11 months ago
by
Neil Crossley
Browse files
Options
Downloads
Patches
Plain Diff
deploy: clone into temporary directory
parent
96baabf3
No related branches found
No related tags found
1 merge request
!2
Deploy helm charts
Pipeline
#42692
failed with stage
in 37 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-6
4 additions, 6 deletions
.gitlab-ci.yml
with
4 additions
and
6 deletions
.gitlab-ci.yml
+
4
−
6
View file @
0d13b671
...
...
@@ -6,6 +6,7 @@ include:
variables
:
DOCKERFILE
:
Dockerfile
TAG
:
${HARBOR_HOST}/${HARBOR_PROJECT}/${CI_PROJECT_NAME}
DSS_WORKDIR
:
/tmp/dss
.rules
:
rules
:
...
...
@@ -25,10 +26,7 @@ docker-build:
name
:
node-654e3bca7fbeeed18f81d7c7.ps-xaas.io/dev-ops/custom-kaniko
entrypoint
:
[
"
"
]
script
:
-
git clone https://github.com/esig/dss-demonstrations.git dss
-
mkdir -p deployment/docker
-
cp dss/Dockerfile deployment/docker/Dockerfile
-
cp -a dss/. .
-
git clone https://github.com/esig/dss-demonstrations.git ${DSS_WORKDIR}
-
echo "Project name is ${CI_PROJECT_NAME}"
-
echo "CommitBranch is ${CI_COMMIT_BRANCH}"
-
echo "Current Commit Tag:${CI_COMMIT_TAG}"
...
...
@@ -36,8 +34,8 @@ docker-build:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"${HARBOR_HOST}\":{\"auth\":\"$(echo -n ${HARBOR_USERNAME}:${HARBOR_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor
--context "${
CI_PROJECT_
DIR}"
--dockerfile "${
CI_PROJECT_
DIR}/$DOCKERFILE"
--context "${
DSS_WORK
DIR}"
--dockerfile "${
DSS_WORK
DIR}/$DOCKERFILE"
--cache=true
--cache-ttl=24h
--destination "${IMAGE_TAG_LOCATION}"
...
...
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