jenkins: add android building
This commit is contained in:
26
Jenkinsfile
vendored
26
Jenkinsfile
vendored
@@ -8,17 +8,29 @@ pipeline {
|
||||
cron('H/10 * * * *')
|
||||
}
|
||||
stages {
|
||||
stage('Build Flutter') {
|
||||
stage('Android') {
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'devenv shell flutter build apk'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
sh 'return 1'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Web') {
|
||||
stages {
|
||||
stage('Build') {
|
||||
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') {
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
withDockerRegistry([credentialsId: 'harbor-login-julian', url: 'https://harbor.julian-mutter.de']) {
|
||||
sh 'docker push harbor.julian-mutter.de/sheetless/sheetless-frontend'
|
||||
@@ -26,4 +38,6 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user