Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
dd10750f6b
|
|||
|
ed2e1b331f
|
|||
|
3dc554837f
|
|||
|
0f959579bd
|
34
Jenkinsfile
vendored
Normal file
34
Jenkinsfile
vendored
Normal 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/
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user