Files
TinderPokemon/Jenkinsfile
Rene Luria ed2e1b331f
All checks were successful
Gitea/TinderPokemon/pipeline/head This commit looks good
fix(ci): upload only changed files
2022-10-24 18:15:22 +02:00

35 lines
711 B
Groovy

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/
"""
}
}
}
}
}