Skip to content

Commit

Permalink
add backup-job container build github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed May 10, 2023
1 parent 26a4c0d commit fc1bb00
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/backup-job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release backup job

on:
workflow_dispatch:
push:
branches: [master]
paths:
- 'backup-job/**'

jobs:
build-backup-job-container:
name: Build backup job container
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Login to GitHub Packages Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: |
ghcr.io/podkrepi-bg/infrastructure/backup-job:main
- name: Scan with Mondoo
uses: mondoohq/actions/docker-image@main
env:
MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }}
with:
image: ghcr.io/podkrepi-bg/infrastructure/backup-job:main
3 changes: 2 additions & 1 deletion backup-job/cronjob-keycloak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ spec:
template:
spec:
containers:
- image: ghcr.io/podkrepi-bg/infrastructure/backup-job:v1.2.0
- image: ghcr.io/podkrepi-bg/infrastructure/backup-job:main
imagePullPolicy: Always
name: backup-job
resources:
requests:
Expand Down
3 changes: 2 additions & 1 deletion backup-job/cronjob-podkrepibg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ spec:
template:
spec:
containers:
- image: ghcr.io/podkrepi-bg/infrastructure/backup-job:v1.2.0
- image: ghcr.io/podkrepi-bg/infrastructure/backup-job:main
imagePullPolicy: Always
name: backup-job
resources:
requests:
Expand Down

0 comments on commit fc1bb00

Please sign in to comment.