Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
reposync
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
linuxsupport
cronjobs
reposync
Commits
895d02cb
There was a problem fetching the pipeline summary.
Commit
895d02cb
authored
6 years ago
by
Alex Iribarren
Browse files
Options
Downloads
Patches
Plain Diff
Do some magic
parent
158abb7a
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-6
3 additions, 6 deletions
.gitlab-ci.yml
with
3 additions
and
6 deletions
.gitlab-ci.yml
+
3
−
6
View file @
895d02cb
...
@@ -72,19 +72,16 @@ tag:
...
@@ -72,19 +72,16 @@ tag:
before_script
:
before_script
:
-
curl https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip -o /tmp/nomad.zip
-
curl https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip -o /tmp/nomad.zip
-
unzip /tmp/nomad.zip -d /usr/local/bin/
-
unzip /tmp/nomad.zip -d /usr/local/bin/
-
env
-
export
-
for j in *.nomad; do sed -i "s/\$NOMAD_ADDR/${NOMAD_ADDRESS}/g" $j; done
deploy_test
:
deploy_test
:
<<
:
*nomad_deps
<<
:
*nomad_deps
stage
:
deploy_test
stage
:
deploy_test
script
:
script
:
-
for j in *.nomad; do nomad job validate $j; done
-
for j in *.nomad; do nomad job validate
<(envsubst <
$j
)
; done
-
for j in *.nomad; do (nomad job plan -verbose $j || [[ $? -eq 0 || $? -eq 1 ]]) || break; done
# plan returns 0 or 1 on success
-
for j in *.nomad; do (nomad job plan -verbose
<(envsubst <
$j
)
|| [[ $? -eq 0 || $? -eq 1 ]]) || break; done
# plan returns 0 or 1 on success
deploy
:
deploy
:
<<
:
*nomad_deps
<<
:
*nomad_deps
stage
:
deploy
stage
:
deploy
script
:
script
:
-
for j in *.nomad; do nomad job run $j; done
-
for j in *.nomad; do nomad job run
<(envsubst <
$j
)
; done
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