forked from Maxluli/TinderPokemon
Add CI configuration #1
Vendored
+32
@@ -0,0 +1,32 @@
|
|||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
kubernetes {
|
||||||
|
yaml '''
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
worker: tinderpokemon
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: builder
|
||||||
|
image: python:3.10
|
||||||
|
command:
|
||||||
|
- cat
|
||||||
|
tty: true
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Deploy') {
|
||||||
|
steps {
|
||||||
|
container('install pip') {
|
||||||
|
sh 'pip3 install python-swiftclient'
|
||||||
|
}
|
||||||
|
container('busybox') {
|
||||||
|
sh 'swift list'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user