Add CI configuration (#1)
All checks were successful
Gitea/TinderPokemon/pipeline/head This commit looks good

Add Jenkinsfile to automate deployment

Co-authored-by: Rene Luria <rene.luria@infomaniak.com>
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2022-10-24 16:18:58 +00:00
parent 279526ed49
commit c4fa2ac4f3

34
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,34 @@
pipeline {
agent {
kubernetes {
yaml '''
apiVersion: v1
kind: Pod
spec:
containers:
- name: python
image: python:3.10
command:
- cat
tty: true
'''
}
}
environment {
SWIFT_CREDENTIALS = credentials("swift")
}
stages {
stage('Deploy files') {
steps {
container('python') {
sh 'pip install python-swiftclient python-keystoneclient'
sh """
. $SWIFT_CREDENTIALS
swift upload --changed tinderpokemon *html
swift upload --changed tinderpokemon assets/
"""
}
}
}
}
}