Skip to content

Commit

Permalink
test GA
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaldivyam committed Apr 1, 2024
1 parent 3ae65a2 commit 4c7a662
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 2 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/dockerbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build Logical backup

on:
push:
branches: [ "fix-logical-backup" ]
tags: [ "v*" ]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./backup-sealed-secrets-keys/Dockerfile
image: ghcr.io/obmondo/backup-sealed-secrets-keys
- dockerfile: ./buildah/Dockerfile
image: ghcr.io/obmondo/buildah
- dockerfile: ./logical-backup/Dockerfile
image: ghcr.io/obmondo/logical-backup
- dockerfile: ./mongodb-backup/Dockerfile
image: ghcr.io/obmondo/mongodb-backup
- dockerfile: ./opensearch-curator/Dockerfile
image: ghcr.io/obmondo/opensearch-curator
- dockerfile: ./postgres-cloudnative-citus/Dockerfile
image: ghcr.io/obmondo/postgres-cloudnative-citus
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ${{ matrix.image }}
- name: Build & push container image
id: docker_build
uses: docker/[email protected]
with:
context: .
file: ${{ matrix.dockerfile }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
push: true
9 changes: 7 additions & 2 deletions .github/workflows/logical-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build Logical backup

on:
push:
branches: [ "fix-logical-backup" ]
branches: [ "-" ]
tags: [ "v*" ]

jobs:
Expand Down Expand Up @@ -31,7 +31,6 @@ jobs:
run: |
IFS=',' read -r -a CHANGED_FILES_ARRAY <<< "${{ steps.list-changed-files.outputs.changed-files }}"
echo "::set-output name=changed-files-array::${CHANGED_FILES_ARRAY[@]}"
echo ${CHANGED_FILES_ARRAY[@]}
- name: Generate container metadata
id: meta
uses: docker/[email protected]
Expand Down Expand Up @@ -60,3 +59,9 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: ${{ steps.meta.outputs.tags }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ matrix.image }}

0 comments on commit 4c7a662

Please sign in to comment.