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

first

parent 23d9f504
No related branches found
No related tags found
No related merge requests found
pipeline {
agent any
tools {
go 'go-1.16'
}
stages {
stage('build new dawn-cli') {
steps {
git branch: 'main',
credentialsId: 'tucker-gitlab-login',
url: 'https://gitlab.cs.umd.edu/dawn/go-backend/dawn-cli'
sh """
go build
sudo cp dawn-cli /usr/local/bin/dawn-cli
"""
}
}
stage('cleanup old images') {
steps {
sh '''
docker rmi $(docker images | grep "dawn/.*-test" | awk '{print $3}') --force || true
docker rmi $(docker images | grep "<none>" | awk '{print $3}') --force || true
'''
}
}
// 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