Skip to content

Commit

Permalink
Merge pull request #124 from fradelg/fix/build
Browse files Browse the repository at this point in the history
Fixed issues in CI testing
  • Loading branch information
fradelg authored Sep 10, 2024
2 parents 07213e8 + dac0695 commit 8a403d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
username: fradelg
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build multiarch image
run: |
Expand Down
11 changes: 9 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: "2"
services:
mariadb:
image: mariadb:10
container_name: my_mariadb
expose:
- 3306
volumes:
Expand All @@ -10,17 +11,23 @@ services:
environment:
- MYSQL_DATABASE=${DATABASE_NAME}
- MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MYSQL_ALLOW_EMPTY_ROOT_PASSWORD=yes
restart: unless-stopped
healthcheck:
test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect"]
timeout: 5s
retries: 10

backup:
build: .
image: fradelg/mysql-cron-backup
depends_on:
- mariadb
mariadb:
condition: service_healthy
volumes:
- ${VOLUME_PATH}/backup:/backup
environment:
- MYSQL_HOST=mariadb
- MYSQL_HOST=my_mariadb
- MYSQL_USER=root
- MYSQL_PASS=${MARIADB_ROOT_PASSWORD}
- MAX_BACKUPS=1
Expand Down

0 comments on commit 8a403d7

Please sign in to comment.