Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dawn-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
dawn
dawn-ci
Commits
af8265e8
Commit
af8265e8
authored
2 years ago
by
Tucker Gary Siegel
Browse files
Options
Downloads
Patches
Plain Diff
u
parent
13376889
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dawn-docs-client/dev
+70
-0
70 additions, 0 deletions
dawn-docs-client/dev
dawn-docs-client/staging
+56
-0
56 additions, 0 deletions
dawn-docs-client/staging
dawn-docs/dev
+6
-35
6 additions, 35 deletions
dawn-docs/dev
dawn-docs/staging
+6
-17
6 additions, 17 deletions
dawn-docs/staging
with
138 additions
and
52 deletions
dawn-docs-client/dev
0 → 100644
+
70
−
0
View file @
af8265e8
pipeline {
agent { label 'node3' }
tools { nodejs 'node' }
stages {
stage('notify') {
steps {
script {
slack_send_start()
}
}
}
stage('ensure cli') {
steps {
sh '''
npm install -g gatsby-cli@4.24.0
gatsby -v
'''
}
}
stage('build') {
options {
timeout(time: 5, unit: 'MINUTES')
}
steps {
git branch: 'main',
credentialsId: 'tgsiegel-gitlab-ssh',
url: 'git@gitlab.cs.umd.edu:dawn/dawn-docs.git'
sh '''
npm i
gatsby clean
npm run build:internal
'''
}
}
stage('copy build') {
options {
timeout(time: 5, unit: 'MINUTES')
}
steps {
sh '''
sudo rm -rf /var/www/dawn_docs/public
sudo cp -r public /var/www/dawn_docs
'''
}
}
stage('restart nginx') {
steps {
sh '''
sudo service nginx restart
'''
}
}
}
post {
success {
script {
slack_send_success()
}
}
failure {
script {
slack_send_failure()
}
}
}
}
This diff is collapsed.
Click to expand it.
dawn-docs-client/staging
0 → 100644
+
56
−
0
View file @
af8265e8
pipeline {
agent { label 'node2' }
tools { nodejs 'node' }
stages {
stage('notify') {
steps {
script {
slack_send_start()
}
}
}
stage('build') {
steps {
git branch: 'main',
credentialsId: 'tgsiegel-gitlab-ssh',
url: 'git@gitlab.cs.umd.edu:dawn/dawn-docs.git'
sh '''
npm i
npm run build
'''
}
}
stage('copy build') {
steps {
sh '''
sudo rm -rf /var/www/dawn_docs/public
sudo cp -r public /var/www/dawn_docs
'''
}
}
stage('restart nginx') {
steps {
sh '''
sudo service nginx restart
'''
}
}
}
post {
success {
script {
slack_send_success()
}
}
failure {
script {
slack_send_failure()
}
}
}
}
This diff is collapsed.
Click to expand it.
dawn-docs/dev
+
6
−
35
View file @
af8265e8
pipeline {
agent { label 'node
3
' }
agent { label 'node
2
' }
tools { nodejs 'node' }
stages {
stage('notify') {
...
...
@@ -9,48 +9,19 @@ pipeline {
}
}
}
stage('ensure cli') {
steps {
sh '''
npm install -g gatsby-cli@4.24.0
gatsby -v
'''
}
}
stage('build') {
options {
timeout(time: 5, unit: 'MINUTES')
}
steps {
git branch: 'main',
credentialsId: 'tgsiegel-gitlab-ssh',
url: 'git@gitlab.cs.umd.edu:dawn/dawn-docs.git'
sh '''
npm i
gatsby clean
npm run build:internal
'''
}
}
stage('copy build') {
options {
timeout(time: 5, unit: 'MINUTES')
}
stage('build') {
steps {
sh '''
sudo
rm -rf /var/www
/dawn
_
docs
/public
sudo
cp -r public /var/www
/dawn
_
docs
sudo
docker build -t docker.registry.dawn.int:5000/dawn
/dawn
-
docs
:latest . -f Dockerfile
sudo
docker push docker.registry.dawn.int:5000/dawn
/dawn
-
docs
:latest
'''
}
}
stage('
restart nginx
') {
stage('
deploy
') {
steps {
sh '''
sudo service nginx restart
'''
upgradeKubernetes('dawn-docs', 'dev')
}
}
}
...
...
This diff is collapsed.
Click to expand it.
dawn-docs/staging
+
6
−
17
View file @
af8265e8
...
...
@@ -12,31 +12,20 @@ pipeline {
stage('build') {
steps {
git branch: '
ma
in',
git branch: '
stag
in
g
',
credentialsId: 'tgsiegel-gitlab-ssh',
url: 'git@gitlab.cs.umd.edu:dawn/dawn-docs.git'
url: 'git@gitlab.cs.umd.edu:dawn/
go-backend/
dawn-docs.git'
sh '''
npm i
npm run build
sudo docker build -t docker.registry.dawn.int:5000/dawn/dawn-docs:latest . -f Dockerfile
sudo docker push docker.registry.dawn.int:5000/dawn/dawn-docs:latest
'''
}
}
stage('
copy build
') {
stage('
deploy
') {
steps {
sh '''
sudo rm -rf /var/www/dawn_docs/public
sudo cp -r public /var/www/dawn_docs
'''
}
}
stage('restart nginx') {
steps {
sh '''
sudo service nginx restart
'''
upgradeKubernetes('dawn-analytics', 'docs')
}
}
}
...
...
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