-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from fradelg/bugfix/skip-dump-date
Fixed database name on dumps
- Loading branch information
Showing
4 changed files
with
29 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: build docker image | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
- name: Test Bash scripts | ||
run: sudo apt-get -qq update && sudo apt-get install -y devscripts shellcheck && make test | ||
- name: Test image | ||
env: | ||
VOLUME_PATH: /tmp/mariadb | ||
DATABASE_NAME: foo | ||
MARIADB_ROOT_PASSWORD: abcd | ||
run: | | ||
docker compose up -d mariadb | ||
docker compose run backup /backup.sh | ||
docker compose run backup /restore.sh /backup/latest.foo.sql.gz | ||
docker compose stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters