mirror of
https://github.com/bvanroll/stage-infra.git
synced 2025-08-28 19:42:43 +00:00
23 lines
448 B
YAML
23 lines
448 B
YAML
|
|
---
|
|
apiVersion: tekton.dev/v1alpha1
|
|
kind: Task
|
|
metadata:
|
|
name: deploy-app
|
|
spec:
|
|
params:
|
|
- name: yaml-location
|
|
default: deploy.yaml
|
|
- name: command
|
|
default: apply
|
|
workspaces:
|
|
- name: source
|
|
mountpath: /source
|
|
steps:
|
|
- name: deploy-new-app
|
|
image: lachlanevenson/k8s-kubectl
|
|
command: ["kubectl"]
|
|
args:
|
|
- "$(params.command)"
|
|
- "-f"
|
|
- "/source/$(params.yaml-location)" |