Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geosphere-deploy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
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
cspp_geo
geosphere
geosphere-deploy
Commits
08e9cfba
Verified
Commit
08e9cfba
authored
4 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Add custom build image for getting helm charts
parent
ac3f4540
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+31
-5
31 additions, 5 deletions
.gitlab-ci.yml
cichart/Dockerfile
+6
-0
6 additions, 0 deletions
cichart/Dockerfile
with
37 additions
and
5 deletions
.gitlab-ci.yml
+
31
−
5
View file @
08e9cfba
...
@@ -6,19 +6,45 @@ stages:
...
@@ -6,19 +6,45 @@ stages:
-
deploy_wms
-
deploy_wms
-
deploy_wmts
-
deploy_wmts
variables
:
DOCKER_TLS_CERTDIR
:
"
"
DOCKER_HOST
:
"
tcp://localhost:2375"
DOCKER_DRIVER
:
overlay2
HELM_EXPERIMENTAL_OCI
:
"
1"
CICHART_IMAGE
:
"
$CI_REGISTRY_IMAGE/cichart:latest"
build ci
:
stage
:
.pre
image
:
docker:19.03.1
services
:
-
docker:19.03.1-dind
before_script
:
-
docker info
-
docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
-
alias helm='docker run -t --rm -e HELM_EXPERIMENTAL_OCI="$HELM_EXPERIMENTAL_OCI" -v $(pwd):/apps -w /apps -v ~/.kube:/root/.kube -v ~/.helm:/root/.helm -v ~/.config/helm:/root/.config/helm -v ~/.cache/helm:/root/.cache/helm alpine/helm:3.2.3'
-
helm registry login -u ${CI_REGISTRY_USER} -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
-
export
script
:
-
docker login --username $CI_REGISTRY_USER --password $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
cd ci
-
docker build --tag $CICHART_IMAGE .
-
docker push $CICHART_IMAGE
rules
:
-
changes
:
-
cichart/Dockerfile
when
:
always
-
if
:
$BUILD_CI_IMAGE
when
:
always
.get_chart_tmpl
:
.get_chart_tmpl
:
stage
:
get_chart
stage
:
get_chart
image
:
docker:19.03.1
image
:
$CICHART_IMAGE
services
:
services
:
-
docker:19.03.1-dind
-
docker:19.03.1-dind
tags
:
tags
:
-
docker
-
docker
variables
:
variables
:
DOCKER_TLS_CERTDIR
:
"
"
DOCKER_HOST
:
"
tcp://localhost:2375"
DOCKER_DRIVER
:
overlay2
HELM_EXPERIMENTAL_OCI
:
"
1"
SUBCOMP_REPOS_BASE
:
"
https://gitlab.ssec.wisc.edu/cspp_geo/geosphere"
SUBCOMP_REPOS_BASE
:
"
https://gitlab.ssec.wisc.edu/cspp_geo/geosphere"
# required:
# required:
SUBCOMP_REPOS
:
"
"
SUBCOMP_REPOS
:
"
"
...
...
This diff is collapsed.
Click to expand it.
cichart/Dockerfile
0 → 100644
+
6
−
0
View file @
08e9cfba
# Custom docker-based build image with git and other utilities added
FROM
docker:19.03.1
RUN
apk update
&&
apk upgrade
&&
\
apk add findutils bash curl jq git
&&
\
rm
-rf
/var/cache/apk/
*
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