diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1f0b34cf..a2eaa935 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -73,15 +73,8 @@ jobs: # docker run --rm "${{ fromJSON(steps.meta.outputs.json).tags[0] }}-test" run: | cd tests - docker run --rm minituff/nautical-backup:test \ - --name nautical-backup \ - -v /var/run/docker.sock:/var/run/docker.sock \ - -v /source:/app/source \ - -v /destination:/app/destination \ - -e LOG_LEVEL="INFO" \ - -e EXIT_AFTER_INIT="true" \ - -e BACKUP_ON_START="true" \ - --build-arg="NAUTICAL_VERSION="test" + docker compose up + # This step uses the docker/build-push-action action to build the image, based on your repository's Dockerfile. # It uses the context parameter to define the build's context as the set of files located in the specified path. diff --git a/tests/docker-compose.yml b/tests/docker-compose.yml index 3180775b..17937797 100644 --- a/tests/docker-compose.yml +++ b/tests/docker-compose.yml @@ -4,9 +4,9 @@ services: image: nautical-backup # Use the local image volumes: - /var/run/docker.sock:/var/run/docker.sock - - C:\Users\James-PC\IdeaProjects\nautical-backup\dev\source:/app/source - - C:\Users\James-PC\IdeaProjects\nautical-backup\dev\destination:/app/destination + - ./source:/app/source + - ./destination:/app/destination entrypoint: /bin/bash app/test.sh environment: - - EXIT_AFTER_INIT=true + - EXIT_AFTER_INIT=false - LOG_LEVEL=DEBUG \ No newline at end of file