Skip to content

Commit

Permalink
Docker images refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
rezachalak committed Oct 28, 2023
1 parent 272094b commit 212a38c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/backup-zen-docker-images-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ jobs:
context: ./docker/pg
file: ./docker/pg/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pg:latest
tags: rezachalak/bzen-pg:latest
-
name: Build and push MongoDB-Backup-Zen
uses: docker/build-push-action@v4
with:
context: ./docker/mongo
file: ./docker/mongo/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/mongo:latest
tags: rezachalak/bzen-mongo:latest
-
name: Build and push MySQL-Backup-Zen
uses: docker/build-push-action@v4
with:
context: ./docker/mysql
file: ./docker/mysql/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/mysql:latest
tags: rezachalak/bzen-mysql:latest
6 changes: 3 additions & 3 deletions .github/workflows/docker-images-with-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ jobs:
context: ./docker/pg
file: ./docker/pg/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pg:${{ github.ref_name }}
tags: rezachalak/bzen-pg:${{ github.ref_name }}
-
name: Build and push MongoDB-Backup-Zen
uses: docker/build-push-action@v4
with:
context: ./docker/mongo
file: ./docker/mongo/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/mongo:${{ github.ref_name }}
tags: rezachalak/bzen-mongo:${{ github.ref_name }}
-
name: Build and push MySQL-Backup-Zen
uses: docker/build-push-action@v4
with:
context: ./docker/mysql
file: ./docker/mysql/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/mysql:${{ github.ref_name }}
tags: rezachalak/bzen-mysql:${{ github.ref_name }}
6 changes: 3 additions & 3 deletions charts/backup-zen/templates/_helpers.tpl
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.AppVersion }}
rezachalak/bzen-pg:{{ .Chart.AppVersion }}
{{- else if eq .Values.databaseType "MySQL" -}}
backupzen/mysql:{{ .Chart.AppVersion }}
rezachalak/bzen-mysql:{{ .Chart.AppVersion }}
{{- else if eq .Values.databaseType "MongoDB" -}}
backupzen/mongo:{{ .Chart.AppVersion }}
rezachalak/bzen-mongo:{{ .Chart.AppVersion }}
{{- end -}}
{{- end -}}

Expand Down
2 changes: 1 addition & 1 deletion 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: rezachalak/pg-backup-zen:1.0.0
# image: rezachalak/bzen-mongo:1.0.0
pullPolicy: Always
imagePullSecrets: []
restartPolicy: Never
Expand Down
12 changes: 6 additions & 6 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ fi
SCRIPTPATH=$(cd ${0%/*} && pwd -P)

cd $SCRIPTPATH/mongo/
docker build . -t backupzen/mongo:$VERSION
docker push backupzen/mongo:$VERSION
docker build . -t rezachalak/bzen-mongo:$VERSION
docker push rezachalak/bzen-mongo:$VERSION

cd $SCRIPTPATH/mysql/
docker build . -t backupzen/mysql:$VERSION
docker push backupzen/mysql:$VERSION
docker build . -t rezachalak/bzen-mysql:$VERSION
docker push rezachalak/bzen-mysql:$VERSION

cd $SCRIPTPATH/pg/
docker build . -t backupzen/pg:$VERSION
docker push backupzen/pg:$VERSION
docker build . -t rezachalak/bzen-pg:$VERSION
docker push rezachalak/bzen-pg:$VERSION

0 comments on commit 212a38c

Please sign in to comment.