Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
7b0164e5
Commit
7b0164e5
authored
4 years ago
by
Jeremy M Fee
Browse files
Options
Downloads
Patches
Plain Diff
Update pipeline
parent
e0199301
No related branches found
No related tags found
2 merge requests
!146
Release CMO metadata to production
,
!20
Pipeline update
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+87
-29
87 additions, 29 deletions
.gitlab-ci.yml
with
87 additions
and
29 deletions
.gitlab-ci.yml
+
87
−
29
View file @
7b0164e5
---
include
:
-
project
:
'
ghsc/hazdev/pipeline-build-template'
ref
:
'
master'
file
:
'
templates/library.yml'
image
:
${DEVOPS_REGISTRY}usgs/centos:latest
stages
:
...
...
@@ -14,6 +8,14 @@ stages:
variables
:
CI_REGISTRY
:
${CODE_REGISTRY}
CI_REGISTRY_IMAGE
:
${CODE_REGISTRY_IMAGE}
# docker variables
FROM_IMAGE
:
${CODE_REGISTRY}/devops/images/usgs/centos:latest
# environment variables
APP_NAME
:
geomag-algorithms
DATA_HOST
:
'
cwbpub.cr.usgs.gov'
DATA_PORT
:
'
2060'
DATA_TYPE
:
'
edge'
## --------------------------------------------------
# Templates
...
...
@@ -30,7 +32,11 @@ variables:
cache
:
{}
extends
:
-
.adjust_image_names
-
.dind
image
:
docker:19.03-git
only
:
-
master@ghsc/geomag/geomag-algorithms
-
production@ghsc/geomag/geomag-algorithms
-
tags@ghsc/geomag/geomag-algorithms
script
:
-
docker build
--pull
...
...
@@ -46,11 +52,11 @@ variables:
-
docker tag local/${IMAGE_NAME} ${INTERNAL_IMAGE_NAME}
-
docker push ${INTERNAL_IMAGE_NAME}
-
docker image rm ${INTERNAL_IMAGE_NAME}
services
:
-
docker:19.03-dind
stage
:
integration
tags
:
-
build
variables
:
FROM_IMAGE
:
${CODE_REGISTRY}/devops/images/usgs/centos:latest
.check_code
:
cache
:
{}
...
...
@@ -89,6 +95,7 @@ variables:
generic-deploy/default.funcs.sh
generic-deploy/deploy.sh
scripts/.
-
export APP_NAME=${APP_NAME}
-
export IMAGE_NAME=${IMAGE_NAME}
-
export REGISTRY=${CI_REGISTRY_IMAGE}
...
...
@@ -98,8 +105,6 @@ variables:
tags
:
-
deploy
-
swarm
variables
:
APP_NAME
:
geomag-algorithms
.mage
:
variables
:
...
...
@@ -107,13 +112,20 @@ variables:
DATA_PORT
:
'
2060'
DATA_TYPE
:
'
edge'
.mage01
:
tags
:
-
mage01
.staging
:
only
:
-
master@ghsc/geomag/geomag-plots
-
tags@ghsc/geomag/geomag-plots
.production
:
except
:
-
^.*beta.*$
-
^.*-rc.*$
only
:
-
tags@ghsc/geomag/geomag-plots
-
production@ghsc/geomag/geomag-plots
when
:
manual
.mage02
:
tags
:
-
mage02
## --------------------------------------------------
# Test Stage
...
...
@@ -137,23 +149,20 @@ Check Python 3.8:
variables
:
PYTHON_VERSION
:
'
3.8'
## --------------------------------------------------
# Integration Stage
## --------------------------------------------------
Build
Staging
Docker Image
:
Build Docker Image
:
extends
:
-
.build_docker_image
-
.staging
variables
:
APP_NAME
:
geomag-algorithms
Build Production Docker Image
:
extends
:
-
.build_docker_image
-
.production
variables
:
APP_NAME
:
geomag-algorithms
# TODO: Penetration testing (e.g. OWASP ZAP etc...)
## --------------------------------------------------
# Deploy Stage
...
...
@@ -163,8 +172,10 @@ Deploy Mage01:
extends
:
-
.deploy
-
.staging
-
.mage
-
.mage01
tags
:
-
deploy
-
swarm
-
mage01
variables
:
APP_NAME
:
geomag-algorithms
...
...
@@ -172,7 +183,54 @@ Deploy Mage02:
extends
:
-
.deploy
-
.production
-
.mage
-
.mage02
tags
:
-
deploy
-
swarm
-
mage02
variables
:
APP_NAME
:
geomag-algorithms
Deploy Algorithms Production01
:
extends
:
-
.deploy
-
.production
tags
:
-
deploy
-
swarm
-
production01
variables
:
APP_NAME
:
geomag-algorithms
Deploy Algorithms Production02
:
extends
:
-
.deploy
-
.production
tags
:
-
deploy
-
swarm
-
production02
variables
:
APP_NAME
:
geomag-algorithms
Deploy Algorithms Staging01
:
extends
:
-
.deploy
-
.staging
tags
:
-
deploy
-
swarm
-
staging01
variables
:
APP_NAME
:
geomag-algorithms
Deploy Algorithms Staging02
:
extends
:
-
.deploy
-
.staging
tags
:
-
deploy
-
swarm
-
staging02
variables
:
APP_NAME
:
geomag-algorithms
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