chore: rename repo, pipeline
This commit is contained in:
parent
da31582c11
commit
120f7686de
@ -1,7 +1,7 @@
|
|||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: cdci-wordpress-fpm-pvc-volume
|
name: cdci-wordpress-7-fpm-pvc-volume
|
||||||
namespace: cdci-librecloud-online
|
namespace: cdci-librecloud-online
|
||||||
labels:
|
labels:
|
||||||
type: local
|
type: local
|
||||||
@ -18,7 +18,7 @@ spec:
|
|||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: cdci-wordpress-fpm-pvc
|
name: cdci-wordpress-7-fpm-pvc
|
||||||
namespace: cdci-librecloud-online
|
namespace: cdci-librecloud-online
|
||||||
spec:
|
spec:
|
||||||
storageClassName: manual
|
storageClassName: manual
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
apiVersion: tekton.dev/v1alpha1
|
apiVersion: tekton.dev/v1alpha1
|
||||||
kind: PipelineResource
|
kind: PipelineResource
|
||||||
metadata:
|
metadata:
|
||||||
name: librecloud-wordpress-fpm-img
|
name: librecloud-wordpress-7-fpm-img
|
||||||
namespace: cdci-librecloud-online
|
namespace: cdci-librecloud-online
|
||||||
spec:
|
spec:
|
||||||
type: image
|
type: image
|
||||||
params:
|
params:
|
||||||
- name: url
|
- name: url
|
||||||
value: termas.librecloud.online/termas_librecloud/wordpress-fpm:7.4
|
value: termas.librecloud.online/termas_librecloud/wordpress-7-fpm:7.4
|
||||||
---
|
---
|
||||||
apiVersion: tekton.dev/v1alpha1
|
apiVersion: tekton.dev/v1alpha1
|
||||||
kind: PipelineResource
|
kind: PipelineResource
|
||||||
metadata:
|
metadata:
|
||||||
name: librecloud-wordpress-fpm-git
|
name: librecloud-wordpress-7-fpm-git
|
||||||
namespace: cdci-librecloud-online
|
namespace: cdci-librecloud-online
|
||||||
spec:
|
spec:
|
||||||
type: git
|
type: git
|
||||||
@ -20,5 +20,5 @@ spec:
|
|||||||
- name: revision
|
- name: revision
|
||||||
value: master
|
value: master
|
||||||
- name: url
|
- name: url
|
||||||
value: https://rlung.librecloud.online/Termas_LibreCloud/wordpress-fpm.git
|
value: https://rlung.librecloud.online/Termas_LibreCloud/wordpress-7-fpm.git
|
||||||
|
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
apiVersion: tekton.dev/v1alpha1
|
apiVersion: tekton.dev/v1alpha1
|
||||||
kind: PipelineRun
|
kind: PipelineRun
|
||||||
metadata:
|
metadata:
|
||||||
name: cdci-wordpress-fpm
|
name: cdci-wordpress-7-fpm
|
||||||
namespace: cdci-librecloud-online
|
namespace: cdci-librecloud-online
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: build-bot
|
serviceAccountName: build-bot
|
||||||
pipelineRef:
|
pipelineRef:
|
||||||
name: cdci-wordpress-fpm
|
name: cdci-wordpress-7-fpm
|
||||||
# podTemplate:
|
# podTemplate:
|
||||||
#volumes:
|
#volumes:
|
||||||
#- name: cdci-volume
|
#- name: cdci-volume
|
||||||
# #emptyDir: {}
|
# #emptyDir: {}
|
||||||
# persistentVolumeClaim:
|
# persistentVolumeClaim:
|
||||||
# claimName: cdci-wordpress-fpm-pvc
|
# claimName: cdci-wordpress-7-fpm-pvc
|
||||||
resources:
|
resources:
|
||||||
- name: source-repo
|
- name: source-repo
|
||||||
resourceRef:
|
resourceRef:
|
||||||
name: librecloud-wordpress-fpm-git
|
name: librecloud-wordpress-7-fpm-git
|
||||||
- name: target-image
|
- name: target-image
|
||||||
resourceRef:
|
resourceRef:
|
||||||
name: librecloud-wordpress-fpm-img
|
name: librecloud-wordpress-7-fpm-img
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: tekton.dev/v1alpha1
|
apiVersion: tekton.dev/v1alpha1
|
||||||
kind: Pipeline
|
kind: Pipeline
|
||||||
metadata:
|
metadata:
|
||||||
name: cdci-wordpress-fpm
|
name: cdci-wordpress-7-fpm
|
||||||
namespace: cdci-librecloud-online
|
namespace: cdci-librecloud-online
|
||||||
spec:
|
spec:
|
||||||
#serviceAccount: build-bot
|
#serviceAccount: build-bot
|
||||||
@ -9,15 +9,15 @@ spec:
|
|||||||
- name: source-repo
|
- name: source-repo
|
||||||
type: git
|
type: git
|
||||||
#resourceRef:
|
#resourceRef:
|
||||||
# name: librecloud-wordpress-fpm-git
|
# name: librecloud-wordpress-7-fpm-git
|
||||||
- name: target-image
|
- name: target-image
|
||||||
type: image
|
type: image
|
||||||
#resourceRef:
|
#resourceRef:
|
||||||
# name: librecloud-wordpress-fpm-img
|
# name: librecloud-wordpress-7-fpm-img
|
||||||
tasks:
|
tasks:
|
||||||
- name: build-wordpress-fpm-img
|
- name: build-wordpress-7-fpm-img
|
||||||
taskRef:
|
taskRef:
|
||||||
name: wordpress-fpm-build-image-from-git-source
|
name: wordpress-7-fpm-build-image-from-git-source
|
||||||
params:
|
params:
|
||||||
- name: pathToDockerFile
|
- name: pathToDockerFile
|
||||||
value: /workspace/source/src
|
value: /workspace/source/src
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: tekton.dev/v1alpha1
|
apiVersion: tekton.dev/v1alpha1
|
||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: wordpress-fpm-build-image-from-git-source
|
name: wordpress-7-fpm-build-image-from-git-source
|
||||||
namespace: cdci-librecloud-online
|
namespace: cdci-librecloud-online
|
||||||
spec:
|
spec:
|
||||||
#serviceAccount: build-bot
|
#serviceAccount: build-bot
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#/bin/bash
|
#/bin/bash
|
||||||
FOLLOW_UP="yes"
|
FOLLOW_UP="yes"
|
||||||
NS_DOMAIN="cdci-librecloud-online"
|
NS_DOMAIN="cdci-librecloud-online"
|
||||||
PIPELINE_NAME="cdci-wordpress-fpm"
|
PIPELINE_NAME="cdci-wordpress-7-fpm"
|
||||||
[ "$1" == "-s" ] && FOLLOW_UP=""
|
[ "$1" == "-s" ] && FOLLOW_UP=""
|
||||||
is_running=`kubectl get pods -n $NS_DOMAIN | grep $PIPELINE_NAME 2>/dev/null`
|
is_running=`kubectl get pods -n $NS_DOMAIN | grep $PIPELINE_NAME 2>/dev/null`
|
||||||
if [ -n "$is_running" ] ; then
|
if [ -n "$is_running" ] ; then
|
||||||
|
@ -6,10 +6,10 @@ Active: true
|
|||||||
Repo: https://github.com/docker-library/wordpress.git
|
Repo: https://github.com/docker-library/wordpress.git
|
||||||
Source: wordpress/php8.0/fpm-alpine
|
Source: wordpress/php8.0/fpm-alpine
|
||||||
|
|
||||||
TargetGit: ssh://git@rlung.librecloud.online:32225/Termas.LibreCloud.online/wordpress-fpm.git
|
#TargetGit: ssh://git@rlung.librecloud.online:32225/Termas.LibreCloud.online/wordpress-fpm7.git
|
||||||
|
|
||||||
# Name - Version, etc
|
# Name - Version, etc
|
||||||
Name: wordpress-fpm
|
Name: wordpress-7-fpm
|
||||||
Version: 7.4
|
Version: 7.4
|
||||||
|
|
||||||
# To get latest
|
# To get latest
|
||||||
|
Loading…
Reference in New Issue
Block a user