blog/.concourse/pipeline.yml

46 lines
No EOL
977 B
YAML

---
resource_types:
- name: helm
type: docker-image
source:
repository: ghcr.io/typositoire/concourse-helm3-resource
resources:
- name: blog.git
type: git
icon: github
source:
uri: https://code.icb4dc0.de/prskr/blog.git
- name: caddy-image
type: docker-image
source:
repository: code.icb4dc0.de/prskr/ci-images/caddy
- name: blog-chart
type: helm
source:
cluster_url: ((k8s-credentials.url))
cluster_ca: ((k8s-credentials.ca-crt))
token: ((k8s-credentials.token))
release: blog
namespace: blog
jobs:
- name: build
plan:
- get: blog.git
trigger: true
- get: caddy-image
trigger: true
- task: build-container-image
file: blog.git/.concourse/tasks/image.yml
input_mapping: {repo: blog.git}
- put: blog-chart
params:
chart: blog.git/deploy/helm
override_values:
- key: image.tag
path: blog.git/.git/refs/heads/main
type: string