33 lines
856 B
YAML
33 lines
856 B
YAML
|
apiVersion: tekton.dev/v1alpha1
|
||
|
kind: Pipeline
|
||
|
metadata:
|
||
|
name: cdci-apache-php
|
||
|
namespace: cdci-librecloud-online
|
||
|
spec:
|
||
|
#serviceAccount: build-bot
|
||
|
resources:
|
||
|
- name: source-repo
|
||
|
type: git
|
||
|
#resourceRef:
|
||
|
# name: librecloud-apache-php-git
|
||
|
- name: target-image
|
||
|
type: image
|
||
|
#resourceRef:
|
||
|
# name: librecloud-apache-php-img
|
||
|
tasks:
|
||
|
- name: build-apache-php-img
|
||
|
taskRef:
|
||
|
name: apache-php-build-image-from-git-source
|
||
|
params:
|
||
|
- name: pathToDockerFile
|
||
|
value: /workspace/source/src
|
||
|
- name: pathToContext
|
||
|
value: /workspace/source/src #configure: may change according to your source
|
||
|
resources:
|
||
|
inputs:
|
||
|
- name: source
|
||
|
resource: source-repo
|
||
|
outputs:
|
||
|
- name: builtImage
|
||
|
resource: target-image
|