Skip to content

Commit

Permalink
GA terst
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaldivyam committed Apr 1, 2024
1 parent 32b96ba commit ab1f8d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/logical-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,18 @@ jobs:
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done
echo "::set-output name=changed-files::$(echo "$ALL_CHANGED_FILES" | tr '\n' ',')"
- name: Convert output to array
id: convert-to-array
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[@]}"
- name: Generate container metadata
id: meta
uses: docker/[email protected]
with:
images: ghcr.io/obmondo/logical-backup
images: ghcr.io/obmondo/${{ steps.changed-files.outputs.all_changed_files}}
tags: |
type=ref,event=branch,enable=${{ !endsWith(github.ref, github.event.repository.default_branch) }}
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mongodb-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build mongodb backup

on:
push:
branches: [ "*" ]
branches: [ "-" ]
paths: 'mongodb-backup/**'
tags: [ "v*" ]

Expand Down
2 changes: 1 addition & 1 deletion logical-backup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ COPY ./* ./

ENV PG_DIR=/usr/lib/postgresql

ENTRYPOINT ["/dump.sh"]
ENTRYPOINT ["/dump.sh"]
1 change: 0 additions & 1 deletion mongodb-backup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ RUN chmod 775 /usr/local/bin/mongouri
VOLUME /backup

CMD /usr/local/bin/entrypoint

0 comments on commit ab1f8d3

Please sign in to comment.