Skip to content
Snippets Groups Projects
Commit 40bc9d5f authored by Tucker Siegel's avatar Tucker Siegel
Browse files

ci fix

parent bd08fdcb
No related branches found
No related tags found
No related merge requests found
pipeline {
agent {label "node2"}
tools {
go 'go-1.16'
}
stages {
stage('build') {
steps {
git branch: 'staging',
credentialsId: 'tucker-gitlab-login',
url: 'https://gitlab.cs.umd.edu/dawn/dawn-client'
sh """
npm i
npm run build:testing
"""
}
}
stage('copy build') {
steps {
sh '''
sudo cp build /var/www/dawn_test
'''
}
}
stage('restart nginx') {
steps {
sh '''
sudo service nginx restart
'''
}
}
// stage('cleanup old images') {
// steps {
// sh '''
// docker image prune --filter "until=168h" --filter "label!=latest" || true
// '''
// sh '''
// docker rmi $(docker images | grep 'dev-test') || true
// '''
// }
// }
stage('build new dawn-cli image') {
steps {
sh '''
docker build -t dawn/dawn-cli .
'''
}
}
// stage('redeploy') {
// steps {
// sh """
// dawn-cli deploy
// """
// }
// }
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment