workflow: switch from gitea to jenkins
This commit is contained in:
34
Jenkinsfile
vendored
Normal file
34
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
pipeline {
|
||||
agent {
|
||||
node {
|
||||
label 'devenv'
|
||||
}
|
||||
}
|
||||
triggers {
|
||||
cron('H/10 * * * *')
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
git branch: 'master', credentialsId: '3563e7c8-6a79-407c-9681-5d6e6291ba34', url: 'https://gitlab.julian-mutter.de/julian/sheetless'
|
||||
}
|
||||
}
|
||||
stage('Build Flutter') {
|
||||
steps {
|
||||
sh 'devenv shell flutter build web --release'
|
||||
}
|
||||
}
|
||||
stage('Build Docker') {
|
||||
steps {
|
||||
sh 'docker build -t harbor.julian-mutter.de/sheetless/sheetless-frontend .'
|
||||
}
|
||||
}
|
||||
stage('Deploy Docker') {
|
||||
steps {
|
||||
withDockerRegistry([credentialsId: 'harbor-login-julian', url: 'https://harbor.julian-mutter.de']) {
|
||||
sh 'docker push harbor.julian-mutter.de/sheetless/sheetless-frontend'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user