Build and publish package
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit

This commit is contained in:
Csaba 2023-12-15 14:23:33 +01:00
parent 6ddbd513f1
commit cb501cc2a9
2 changed files with 12 additions and 3 deletions

13
Jenkinsfile vendored
View file

@ -5,6 +5,9 @@ pipeline {
args '-u root' args '-u root'
} }
} }
environment {
GITEA_CREDS = credentials('AMARILLO-JENKINS-GITEA-USER')
}
stages { stages {
stage('Create virtual environment') { stage('Create virtual environment') {
steps { steps {
@ -25,9 +28,15 @@ pipeline {
echo 'Testing' echo 'Testing'
} }
} }
stage('Deploy') { stage('Build') {
steps { steps {
echo 'Deploying' echo 'Building package'
sh 'python -m build'
}
}
stage('Publish package') {
steps {
sh 'python -m twine upload --repository gitea --username $GITEA_CREDS_USR --password $GITEA_CREDS_PSW ./dist/*'
} }
} }
} }

View file

@ -1,6 +1,6 @@
[project] [project]
name = "amarillo-core" name = "amarillo-core"
version = "0.0.5" version = "0.0.6"
dependencies = [ dependencies = [
"fastapi[all]==0.104.0", "fastapi[all]==0.104.0",
"geopandas==0.14", "geopandas==0.14",