swave-frontend/Jenkinsfile
José Manuel a7e1c99a65
Some checks failed
gitea/swave-frontend/pipeline/head There was a failure building this commit
Initial commit
2024-10-02 22:56:10 +02:00

37 lines
1.0 KiB
Groovy

pipeline {
agent any
stages {
stage('Docker build') {
steps {
sh '''
docker build --network="host" -t darkbird/swave-frontend:latest .
'''
}
}
stage('Docker tag') {
steps {
sh '''
docker image tag darkbird/swave-frontend:latest registry.xdarkbird.duckdns.org/darkbird/swave-frontend:latest
'''
}
}
stage('Docker push') {
steps {
sh '''
docker push registry.xdarkbird.duckdns.org/darkbird/swave-frontend:latest
'''
}
}
stage('Docker clean') {
steps {
sh '''
docker rmi darkbird/swave-frontend:latest
docker rmi registry.xdarkbird.duckdns.org/darkbird/swave-frontend:latest
docker image prune -f
'''
}
}
}
}