workflow: switch from gitea to jenkins

This commit is contained in:
2025-10-03 10:35:12 +02:00
parent 48b53b716d
commit a26c729c84
2 changed files with 34 additions and 39 deletions

34
Jenkinsfile vendored Normal file
View 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'
}
}
}
}
}