chore: fix domain in pipiline
This commit is contained in:
parent
ee313c14b1
commit
98ac2b0cb9
22
README.md
22
README.md
@ -4,35 +4,35 @@ This is to build a [__container image__](https://www.docker.com/resources/what-c
|
|||||||
|
|
||||||
It uses [source docker-webhook repo](https://github.com/almir/docker-webhook/blob/master/Dockerfile) to run [webhook](https://github.com/adnanh/webhook) as a listen process.
|
It uses [source docker-webhook repo](https://github.com/almir/docker-webhook/blob/master/Dockerfile) to run [webhook](https://github.com/adnanh/webhook) as a listen process.
|
||||||
|
|
||||||
It has a key role in [LibreCloud Termas CD/CI](https://repo.librecloud.services/termas_librecloud/librecloud-termas-cd-ci) procedures to trigger _workflow_ and [build automation](https://en.wikipedia.org/wiki/Build_automation).
|
It has a key role in [LibreCloud Termas CD/CI](https://repo.librecloud.online/termas_librecloud/librecloud-termas-cd-ci) procedures to trigger _workflow_ and [build automation](https://en.wikipedia.org/wiki/Build_automation).
|
||||||
|
|
||||||
[Container image](https://www.docker.com/resources/what-container) can be found in [**src** Dockerfile](https://repo.librecloud.services/termas_librecloud/webhook-pipeline/src/branch/master/src/Dockerfile)
|
[Container image](https://www.docker.com/resources/what-container) can be found in [**src** Dockerfile](https://repo.librecloud.online/termas_librecloud/webhook-pipeline/src/branch/master/src/Dockerfile)
|
||||||
|
|
||||||
[Tekton Pipeline](https://github.com/tektoncd/pipeline) can be found in [**pipeline** directory]
|
[Tekton Pipeline](https://github.com/tektoncd/pipeline) can be found in [**pipeline** directory]
|
||||||
(https://repo.librecloud.services/termas_librecloud/webhook-pipeline/src/branch/master/pipeline).
|
(https://repo.librecloud.online/termas_librecloud/webhook-pipeline/src/branch/master/pipeline).
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
[LibreCloud Termas CD/CI configuation](https://repo.librecloud.services/termas_librecloud/librecloud-termas-cd-ci#configuration)
|
[LibreCloud Termas CD/CI configuation](https://repo.librecloud.online/termas_librecloud/librecloud-termas-cd-ci#configuration)
|
||||||
|
|
||||||
## Pipeline
|
## Pipeline
|
||||||
[LibreCloud Termas CD/CI pipeline](https://repo.librecloud.services/termas_librecloud/librecloud-termas-cd-ci#pipeline)
|
[LibreCloud Termas CD/CI pipeline](https://repo.librecloud.online/termas_librecloud/librecloud-termas-cd-ci#pipeline)
|
||||||
|
|
||||||
## Service
|
## Service
|
||||||
|
|
||||||
Some scripts to check, config and run a [Tekton Pipeline](https://github.com/tektoncd/pipeline) are need it in final service to complete [LibreCloud Termas CD/CI](https://librecloud.services/termas-cd-ci) as a [CD](https://en.wikipedia.org/wiki/Continuous_delivery)/[CI](https://en.wikipedia.org/wiki/Continuous_integration) workflow.
|
Some scripts to check, config and run a [Tekton Pipeline](https://github.com/tektoncd/pipeline) are need it in final service to complete [LibreCloud Termas CD/CI](https://librecloud.online/termas-cd-ci) as a [CD](https://en.wikipedia.org/wiki/Continuous_delivery)/[CI](https://en.wikipedia.org/wiki/Continuous_integration) workflow.
|
||||||
|
|
||||||
A [Webhook-Pipe Image](https://repo.librecloud.services/termas_librecloud/webhook-pipeline) configured service can be found in [LibreCloud webhook-pipeline service](https://repo.librecloud.services/services_librecloud/webhook-pipeline) as an implementation of [LibreCloud Services](https://repo.librecloud.services/services_librecloud/librecloud-services)
|
A [Webhook-Pipe Image](https://repo.librecloud.online/termas_librecloud/webhook-pipeline) configured service can be found in [LibreCloud webhook-pipeline service](https://repo.librecloud.online/services_librecloud/webhook-pipeline) as an implementation of [LibreCloud Services](https://repo.librecloud.online/services_librecloud/librecloud.online)
|
||||||
|
|
||||||
In most cases final service will need additional or multiple [containers](https://www.docker.com/resources/what-container) to run, as [init containers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) or [sidecar containers] (https://kubernetes.io/docs/concepts/workloads/pods/pod-overview/).
|
In most cases final service will need additional or multiple [containers](https://www.docker.com/resources/what-container) to run, as [init containers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) or [sidecar containers] (https://kubernetes.io/docs/concepts/workloads/pods/pod-overview/).
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
[LibreCloud Termas CD/CI installation](https://repo.librecloud.services/termas_librecloud/librecloud-termas-cd-ci#install)
|
[LibreCloud Termas CD/CI installation](https://repo.librecloud.online/termas_librecloud/librecloud-termas-cd-ci#install)
|
||||||
|
|
||||||
## Task list
|
## Task list
|
||||||
[LibreCloud Termas CD/CI task list] (https://repo.librecloud.services/termas_librecloud/librecloud-termas-cd-ci#terma-tasks-list)
|
[LibreCloud Termas CD/CI task list] (https://repo.librecloud.online/termas_librecloud/librecloud-termas-cd-ci#terma-tasks-list)
|
||||||
|
|
||||||
## Directory content
|
## Directory content
|
||||||
[LibreCloud Termas CD/CI Directory content] (https://repo.librecloud.services/termas_librecloud/librecloud-termas-cd-ci#directory-content)
|
[LibreCloud Termas CD/CI Directory content] (https://repo.librecloud.online/termas_librecloud/librecloud-termas-cd-ci#directory-content)
|
||||||
|
|
||||||
## References
|
## References
|
||||||
Use [LibreCloud Termas CD/CI References](https://repo.librecloud.services/termas_librecloud/librecloud-termas-cd-ci#references)
|
Use [LibreCloud Termas CD/CI References](https://repo.librecloud.online/termas_librecloud/librecloud-termas-cd-ci#references)
|
||||||
|
@ -2,7 +2,7 @@ kind: PersistentVolume
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: cdci-webhook-pipeline-pvc-volume
|
name: cdci-webhook-pipeline-pvc-volume
|
||||||
namespace: cdci-librecloud-services
|
namespace: cdci-librecloud-online
|
||||||
labels:
|
labels:
|
||||||
type: local
|
type: local
|
||||||
spec:
|
spec:
|
||||||
@ -19,7 +19,7 @@ kind: PersistentVolumeClaim
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: cdci-webhook-pipeline-pvc
|
name: cdci-webhook-pipeline-pvc
|
||||||
namespace: cdci-librecloud-services
|
namespace: cdci-librecloud-online
|
||||||
spec:
|
spec:
|
||||||
storageClassName: manual
|
storageClassName: manual
|
||||||
accessModes:
|
accessModes:
|
||||||
|
@ -2,23 +2,23 @@ apiVersion: tekton.dev/v1alpha1
|
|||||||
kind: PipelineResource
|
kind: PipelineResource
|
||||||
metadata:
|
metadata:
|
||||||
name: librecloud-webhook-pipeline-img
|
name: librecloud-webhook-pipeline-img
|
||||||
namespace: cdci-librecloud-services
|
namespace: cdci-librecloud-online
|
||||||
spec:
|
spec:
|
||||||
type: image
|
type: image
|
||||||
params:
|
params:
|
||||||
- name: url
|
- name: url
|
||||||
value: termas.librecloud.services/termas_librecloud/webhook-pipeline:2.7.0
|
value: termas.librecloud.online/termas_librecloud/webhook-pipeline:2.8.0
|
||||||
---
|
---
|
||||||
apiVersion: tekton.dev/v1alpha1
|
apiVersion: tekton.dev/v1alpha1
|
||||||
kind: PipelineResource
|
kind: PipelineResource
|
||||||
metadata:
|
metadata:
|
||||||
name: librecloud-webhook-pipeline-git
|
name: librecloud-webhook-pipeline-git
|
||||||
namespace: cdci-librecloud-services
|
namespace: cdci-librecloud-online
|
||||||
spec:
|
spec:
|
||||||
type: git
|
type: git
|
||||||
params:
|
params:
|
||||||
- name: revision
|
- name: revision
|
||||||
value: master
|
value: master
|
||||||
- name: url
|
- name: url
|
||||||
value: https://CREDENTIALS@repo.librecloud.services/termas_librecloud/webhook-pipeline.git
|
value: https://CREDENTIALS@rlung.librecloud.online/Termas_LibreCloud/webhook-pipeline.git
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ apiVersion: tekton.dev/v1alpha1
|
|||||||
kind: PipelineRun
|
kind: PipelineRun
|
||||||
metadata:
|
metadata:
|
||||||
name: cdci-webhook-pipeline
|
name: cdci-webhook-pipeline
|
||||||
namespace: cdci-librecloud-services
|
namespace: cdci-librecloud-online
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: build-bot
|
serviceAccountName: build-bot
|
||||||
pipelineRef:
|
pipelineRef:
|
||||||
|
@ -2,7 +2,7 @@ apiVersion: tekton.dev/v1alpha1
|
|||||||
kind: Pipeline
|
kind: Pipeline
|
||||||
metadata:
|
metadata:
|
||||||
name: cdci-webhook-pipeline
|
name: cdci-webhook-pipeline
|
||||||
namespace: cdci-librecloud-services
|
namespace: cdci-librecloud-online
|
||||||
spec:
|
spec:
|
||||||
#serviceAccount: build-bot
|
#serviceAccount: build-bot
|
||||||
resources:
|
resources:
|
||||||
|
@ -2,7 +2,7 @@ apiVersion: tekton.dev/v1alpha1
|
|||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: webhook-pipeline-build-image-from-git-source
|
name: webhook-pipeline-build-image-from-git-source
|
||||||
namespace: cdci-librecloud-services
|
namespace: cdci-librecloud-online
|
||||||
spec:
|
spec:
|
||||||
#serviceAccount: build-bot
|
#serviceAccount: build-bot
|
||||||
inputs:
|
inputs:
|
||||||
@ -25,7 +25,7 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
description: The name of the BuildKit client (buildctl) image
|
description: The name of the BuildKit client (buildctl) image
|
||||||
|
|
||||||
default: "moby/buildkit:v0.6.2"
|
default: "docker.io/moby/buildkit:master-rootless"
|
||||||
- name: BUILDKIT_DAEMON_ADDRESS
|
- name: BUILDKIT_DAEMON_ADDRESS
|
||||||
type: string
|
type: string
|
||||||
description: The address of the BuildKit daemon (buildkitd) service
|
description: The address of the BuildKit daemon (buildkitd) service
|
||||||
@ -45,6 +45,9 @@ spec:
|
|||||||
- name: ssh-volume
|
- name: ssh-volume
|
||||||
secret:
|
secret:
|
||||||
secretName: ssh-key
|
secretName: ssh-key
|
||||||
|
- name: certs
|
||||||
|
secret:
|
||||||
|
secretName: buildkit-client-certs
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
@ -55,6 +58,12 @@ spec:
|
|||||||
|
|
||||||
command: [ "buildctl" ]
|
command: [ "buildctl" ]
|
||||||
args:
|
args:
|
||||||
|
- --tlscacert
|
||||||
|
- /certs/ca.pem
|
||||||
|
- --tlscert
|
||||||
|
- /certs/cert.pem
|
||||||
|
- --tlskey
|
||||||
|
- /certs/key.pem
|
||||||
- --debug
|
- --debug
|
||||||
- --addr=$(inputs.params.BUILDKIT_DAEMON_ADDRESS)
|
- --addr=$(inputs.params.BUILDKIT_DAEMON_ADDRESS)
|
||||||
- build
|
- build
|
||||||
@ -72,4 +81,11 @@ spec:
|
|||||||
- type=inline
|
- type=inline
|
||||||
- --import-cache
|
- --import-cache
|
||||||
- type=registry,ref=$(outputs.resources.builtImage.url)
|
- type=registry,ref=$(outputs.resources.builtImage.url)
|
||||||
|
volumeMounts:
|
||||||
|
- name: certs
|
||||||
|
readOnly: true
|
||||||
|
mountPath: /certs
|
||||||
|
- name: ssh-volume
|
||||||
|
readOnly: true
|
||||||
|
mountPath: /.ssh
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#/bin/bash
|
#/bin/bash
|
||||||
FOLLOW_UP="yes"
|
FOLLOW_UP="yes"
|
||||||
NS_DOMAIN="cdci-librecloud-services"
|
NS_DOMAIN="cdci-librecloud-online"
|
||||||
PIPELINE_NAME="cdci-webhook-pipeline"
|
PIPELINE_NAME="cdci-webhook-pipeline"
|
||||||
[ "$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`
|
||||||
|
Loading…
Reference in New Issue
Block a user