Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ghsc
Hazards Development Team
earthquake-geoserve-ui
Commits
b890b2cc
Commit
b890b2cc
authored
May 28, 2019
by
Malin, James (Contractor) Christopher
Browse files
test print APP vars
parent
d0e77c32
Pipeline
#871
failed with stages
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
b890b2cc
...
...
@@ -97,6 +97,10 @@ build:
script
:
-
echo "Building..."
-
for var in "${!APP_@}"; do
-
printf '%s=%s\n' "$var" "${!var}"
-
done
# # build a local directory to be used later for testing or deploying
# - mkdir docker-images
# # build image and save
...
...
@@ -225,22 +229,22 @@ trigger deploy:
-
merge_requests
-
master
script
:
-
'
curl
-X
POST
-F
token=5db4dbb65dd8f2583082e1555bae6a
-F
"ref=master"
-F
"variables[CI_COMMIT_MESSAGE]=$CI_COMMIT_MESSAGE"
-F
"variables[IMAGE_VERSION]=${IMAGE_VERSION}"
-F
"variables[DB_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/db:${IMAGE_VERSION}"
-F
"variables[ENVIRONMENT]=${ENVIRONMENT}"
-F
"variables[UI_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/ui:${IMAGE_VERSION}"
-F
"variables[APP_NAME]=${DEPLOY_APP_NAME}"
-F
"variables[GIT_BRANCH]=origin/master"
-F
"variables[WS_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/ws:${IMAGE_VERSION}"
-F
"variables[APP_REPO]=ghsc/hazdev/earthquake-geoserve.git"
-F
"variables[STACK_NAME]=earthquake-geoserve"
-F
"variables[TARGET_HOSTNAME]=dev01-container01.cr.usgs.gov"
-F
"variables[REMOTE_DEPLOY_DIR]=${REMOTE_DEPLOY_DIR}"
https://code.chs.usgs.gov/api/v4/projects/1955/trigger/pipeline'
-
'
curl
-X
POST
-F
token=5db4dbb65dd8f2583082e1555bae6a
-F
"ref=master"
-F
"variables[CI_COMMIT_MESSAGE]=$CI_COMMIT_MESSAGE"
-F
"variables[IMAGE_VERSION]=${IMAGE_VERSION}"
-F
"variables[DB_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/db:${IMAGE_VERSION}"
-F
"variables[ENVIRONMENT]=${ENVIRONMENT}"
-F
"variables[UI_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/ui:${IMAGE_VERSION}"
-F
"variables[APP_NAME]=${DEPLOY_APP_NAME}"
-F
"variables[GIT_BRANCH]=origin/master"
-F
"variables[WS_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/ws:${IMAGE_VERSION}"
-F
"variables[APP_REPO]=ghsc/hazdev/earthquake-geoserve.git"
-F
"variables[STACK_NAME]=earthquake-geoserve"
-F
"variables[TARGET_HOSTNAME]=dev01-container01.cr.usgs.gov"
-F
"variables[REMOTE_DEPLOY_DIR]=${REMOTE_DEPLOY_DIR}"
https://code.chs.usgs.gov/api/v4/projects/1955/trigger/pipeline'
# use triggers with Jenkins config
# use triggers w/ container master
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment