2022-12-23 14:10:41 +00:00
|
|
|
---
|
|
|
|
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
|
|
|
|
|
2022-12-30 14:11:02 +00:00
|
|
|
- name: caddy-image
|
|
|
|
type: docker-image
|
|
|
|
source:
|
|
|
|
repository: code.icb4dc0.de/prskr/ci-images/caddy
|
|
|
|
|
2022-12-23 14:10:41 +00:00
|
|
|
- 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
|
2022-12-30 14:11:02 +00:00
|
|
|
- get: caddy-image
|
|
|
|
trigger: true
|
2022-12-23 14:10:41 +00:00
|
|
|
- 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
|