Skip to content

Commit

Permalink
fix(workflow): change old docker-compose call to new ``docker com…
Browse files Browse the repository at this point in the history
…pose`` (#1383)

The "Backend | docker-compose database" flow did not work anymore with the following error:

Run docker-compose -f docker-compose.yml up --detach --no-deps database
The Compose file './docker-compose.yml' is invalid because:
'include' does not match any of the regexes: '^x-'

You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
Error: Process completed with exit code 1.
  • Loading branch information
Elweyn authored Jul 10, 2024
1 parent f29f294 commit 812efa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
with:
node-version-file: './.tool-versions'
- name: Backend | docker-compose database
run: docker-compose -f docker-compose.yml up --detach --no-deps database
run: docker compose -f docker-compose.yml up --detach --no-deps database
- name: Backend | Unit
run: npm install && cp src/auth/public.pem . && npm run db:migrate && npm run test:unit
working-directory: ./backend

0 comments on commit 812efa7

Please sign in to comment.