Files
TinderPokemon/Jenkinsfile
T
herel 3dc554837f
Gitea/TinderPokemon/pipeline/head This commit looks good
fix(ci): try to use Jenkinsfile
2022-10-24 17:51:50 +02:00

38 lines
746 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 """
pwd
"""
sh 'pip install python-swiftclient python-keystoneclient'
sh """
. $SWIFT_CREDENTIALS
swift upload tinderpokemon *html
swift upload tinderpokemon assets/
"""
}
}
}
}
}