Skip to content

Commit

Permalink
chore: init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Międzybrodzki committed Dec 11, 2024
1 parent af8009c commit 3e86993
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release Charts

on:
push:
branches:
- main

jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: .
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
platformex.iml
11 changes: 11 additions & 0 deletions Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v2
name: platformex
description: Flexible helm chart to deploy your apps to kubernetes cluster.

type: application

# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

appVersion: 1.0.0

17 changes: 17 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: List
items:
{{- range $iname, $instance := .Values.deployments.instances }}
{{- range $dname, $deployment := $instance.deployments }}
- apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ $dname }}
annotations:
labels:
{{- range $key, $value := $.Values.global.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
ops.kodzik.cloud/instance: {{ $iname | quote }}
{{- end }}
{{- end }}
10 changes: 10 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
global:
labels:
ops.kodzik.cloud/chart: "platformex"

deployments:
instances:
default:
deployments:
testowy:
replicas: 1

0 comments on commit 3e86993

Please sign in to comment.