forked from Maxluli/TinderPokemon
Add CI configuration #1
Vendored
+16
-11
@@ -4,12 +4,9 @@ pipeline {
|
|||||||
yaml '''
|
yaml '''
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
worker: tinderpokemon
|
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: builder
|
- name: python
|
||||||
image: python:3.10
|
image: python:3.10
|
||||||
command:
|
command:
|
||||||
- cat
|
- cat
|
||||||
@@ -17,14 +14,22 @@ pipeline {
|
|||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stages {
|
environment {
|
||||||
stage('Deploy') {
|
SWIFT_CREDENTIALS = credentials("swift")
|
||||||
steps {
|
|
||||||
container('install pip') {
|
|
||||||
sh 'pip3 install python-swiftclient'
|
|
||||||
}
|
}
|
||||||
container('busybox') {
|
stages {
|
||||||
sh 'swift list'
|
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/
|
||||||
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user