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
077a8537
Commit
077a8537
authored
May 28, 2019
by
Malin, James (Contractor) Christopher
Browse files
Merge branch 'trigger' into 'master'
Trigger See merge request
!27
parents
d0c47cc5
9cdd0113
Pipeline
#860
passed with stages
in 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
077a8537
...
...
@@ -57,6 +57,35 @@ stages:
# - publish-image
-
trigger_deploy
# ADD IN METADATA.json for tagging, etc.
# stage('Build Image') {
# def info = [:]
# def pkgInfo = readJSON file: 'package.json'
# info.version = pkgInfo.version
# info.branch = SCM_VARS.GIT_BRANCH
# info.commit = SCM_VARS.GIT_COMMIT
# info.image = IMAGE_VERSION
# // Convert from Map --> JSON
# info = readJSON text: groovy.json.JsonOutput.toJson(info)
# writeJSON file: 'metadata.json', pretty: 4, json: info
# // Build candidate image for later penetration testing
# ansiColor('xterm') {
# sh """
# docker build \
# --build-arg FROM_IMAGE=${BASE_IMAGE} \
# --build-arg BUILD_IMAGE=${BUILDER_IMAGE} \
# -t ${LOCAL_IMAGE} \
# .
# """
# }
# }
###### Build ######
build
:
stage
:
build
...
...
@@ -182,8 +211,10 @@ trigger deploy:
# BUILD_ID: $${BUILD_ID}
image
:
node:latest
stage
:
trigger_deploy
when
:
manual
only
:
-
merge_requests
-
master
# trigger: jmalin/container-deploy
script
:
-
'
curl
-X
POST
...
...
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