move to docker v2

This commit is contained in:
Fco. Javier Delgado del Hoyo 2024-09-10 19:25:10 +02:00 committed by GitHub
parent 9f3f7bcdfa
commit 353430ff83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,10 +22,10 @@ jobs:
DATABASE_NAME: foo DATABASE_NAME: foo
MARIADB_ROOT_PASSWORD: abcd MARIADB_ROOT_PASSWORD: abcd
run: | run: |
docker-compose up -d mariadb docker compose up -d mariadb
docker-compose run backup /backup.sh docker compose run backup /backup.sh
docker-compose run backup /restore.sh /backup/latest.foo.sql.gz docker compose run backup /restore.sh /backup/latest.foo.sql.gz
docker-compose stop docker compose stop
build: build:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: test needs: test
@ -50,4 +50,4 @@ jobs:
run: | run: |
docker buildx build --push \ docker buildx build --push \
--tag fradelg/mysql-cron-backup:${{ steps.docker-tag.outputs.tag }} \ --tag fradelg/mysql-cron-backup:${{ steps.docker-tag.outputs.tag }} \
--platform linux/amd64,linux/arm/v7,linux/arm64 . --platform linux/amd64,linux/arm/v7,linux/arm64 .