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
33e1f6dd
Commit
33e1f6dd
authored
5 months ago
by
Shavers, Nicholas H
Browse files
Options
Downloads
Patches
Plain Diff
exported variables updated for consistency
parent
be1177a9
No related branches found
No related tags found
1 merge request
!350
124 continued - exported variables updated for consistency
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+6
-7
6 additions, 7 deletions
.gitlab-ci.yml
scripts/custom.funcs.sh
+1
-1
1 addition, 1 deletion
scripts/custom.funcs.sh
with
7 additions
and
8 deletions
.gitlab-ci.yml
+
6
−
7
View file @
33e1f6dd
...
...
@@ -12,7 +12,8 @@ variables:
DATA_PORT
:
"
2060"
DATA_TYPE
:
"
edge"
UPSTREAM_PATH
:
ghsc/geomag/geomag-algorithms
BRANCH_OR_TAG
:
:${CI_COMMIT_REF_SLUG}
# format looks like ':feature-branch'
BRANCH_OR_TAG
:
${BRANCH_OR_TAG/:master/:latest}
#replaces ':master' with ':latest'
# Do not run in upstream for merge requests
workflow
:
rules
:
...
...
@@ -25,10 +26,8 @@ workflow:
.adjust_image_names
:
before_script
:
-
IMAGE_NAME=${APP_NAME}:${CI_COMMIT_REF_SLUG}
-
IMAGE_NAME=${IMAGE_NAME/:master/:latest}
-
PROJECT_IMAGE_NAME=$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
-
PROJECT_IMAGE_NAME=${PROJECT_IMAGE_NAME/:master/:latest}
-
IMAGE_NAME=${APP_NAME}${BRANCH_OR_TAG}
-
PROJECT_IMAGE_NAME=${CI_REGISTRY_IMAGE}${BRANCH_OR_TAG}
.deploy
:
extends
:
...
...
@@ -41,8 +40,8 @@ workflow:
/container-deploy/deploy.sh
scripts/.
-
export APP_NAME=${APP_NAME}
-
export IMAGE_
NAME=${IMAGE_NAME}
-
export REGISTRY=${CI_REGISTRY_IMAGE}
-
export IMAGE_
TAG=${BRANCH_OR_TAG}
-
export REGISTRY
_IMAGE
=${CI_REGISTRY_IMAGE}
-
export STACK_NAME=${APP_NAME}
-
./scripts/deploy.sh
stage
:
deploy
...
...
This diff is collapsed.
Click to expand it.
scripts/custom.funcs.sh
+
1
−
1
View file @
33e1f6dd
...
...
@@ -84,7 +84,7 @@ services:
# custom.funcs.sh and the custom.config.sh as well. Probably just do not
# ever do this...
web:
image:
${
REGISTRY
}
/
${
IMAGE_
NAME
}
image:
${
REGISTRY
_IMAGE
}${
IMAGE_
TAG
}
deploy:
restart_policy:
condition: any
...
...
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