mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-10-08 18:50:17 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
26 lines
683 B
YAML
26 lines
683 B
YAML
name: build docker image
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout the code
|
|
uses: actions/checkout@v5
|
|
- 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
|