pipeline {
agent any
environment {
DOCKER_LOGIN_CREDS = credentials('gitlab-docker-key')
}
stages {
stage('Prepare') {
steps {
sh 'rustup component add clippy'
}
}
stage('Build') {
steps {
sh 'cargo build --locked'
}
}
stage('Clippy') {
steps {
sh 'cargo clippy --locked'
}
}
stage('Docker') {
steps {
sh 'docker login registry.gitlab.com -u ${DOCKER_LOGIN_CREDS_USR} -p ${DOCKER_LOGIN_CREDS_PSW}'
sh './spacetime build_docker_api'
sh './spacetime build_docker_server'
}
}
}
}