se agrego el deploy

This commit is contained in:
2023-01-26 10:35:17 -06:00
parent c1705d2c0c
commit 1e10bae3b3
2 changed files with 22 additions and 11 deletions

22
deploy.yml Normal file
View File

@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deploy
labels:
app: nginx-deploy
spec:
replicas: 1
selector:
matchLabels:
app: nginx-deploy
template:
metadata:
labels:
app: nginx-deploy
spec:
containers:
- name: nginx-test
image: flora-hub:5000/nginx-test:<tag>
imagePullPolicy: Always
ports:
- containerPort: 80

11
jj
View File

@@ -1,11 +0,0 @@
pipeline {
agent none
stages {
stage('Docker Build') {
agent any
steps {
sh 'docker build -t nginx .'
}
}
}
}