Skip to content

Commit

Permalink
project structures updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rezachalak committed Oct 21, 2023
1 parent 1934132 commit 591f647
Show file tree
Hide file tree
Showing 27 changed files with 38 additions and 1,282 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/backup-zen-docker-images-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: Backup-zen Docker Image CI latest
on:
push:
branches: [ "main" ]
paths: [ "docker" ]
pull_request:
branches: [ "main" ]
paths: [ "docker" ]

jobs:
build:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/release-helm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release Charts

on:
push:
branches:
- main
permissions:
contents: write
jobs:
release:
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: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
File renamed without changes.
6 changes: 6 additions & 0 deletions charts/backup-zen/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
description: BackupZen is a solution for backing up and uploading various database types, leveraging the power of K8s cronjobs.
name: backup-zen
version: 0.1.0
appVersion: 1.0.0
kubeVersion: ">= 1.20.0"
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ Create Dumper image address
{{- if .Values.cronjob.image -}}
{{- .Values.cronjob.image -}}
{{- else if eq .Values.databaseType "PostgreSQL" -}}
backupzen/pg:{{ .Chart.Version }}
backupzen/pg:{{ .Chart.AppVersion }}
{{- else if eq .Values.databaseType "MySQL" -}}
backupzen/mysql:{{ .Chart.Version }}
backupzen/mysql:{{ .Chart.AppVersion }}
{{- else if eq .Values.databaseType "MongoDB" -}}
backupzen/mongo:{{ .Chart.Version }}
backupzen/mongo:{{ .Chart.AppVersion }}
{{- end -}}
{{- end -}}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion helm/values.yaml → charts/backup-zen/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ global:
failedTeamsURL: https://myorg.webhook.office.com/webhookb2/blob-blob-blob

cronjob:
image: mrezachalak/pg-backup-zen:12.1
# image: mrezachalak/pg-backup-zen:12.1
pullPolicy: Always
imagePullSecrets: []
restartPolicy: Never
Expand Down
4 changes: 0 additions & 4 deletions helm/Chart.yaml

This file was deleted.

176 changes: 0 additions & 176 deletions helm/k8s.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions mongo_backup/README.md

This file was deleted.

82 changes: 0 additions & 82 deletions mongo_backup/main.sh

This file was deleted.

Loading

0 comments on commit 591f647

Please sign in to comment.