Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with docker compose #4

Closed
mpozuelo-flomics opened this issue Aug 26, 2020 · 4 comments
Closed

Problems with docker compose #4

mpozuelo-flomics opened this issue Aug 26, 2020 · 4 comments

Comments

@mpozuelo-flomics
Copy link

Hi! When trying to build the yml as follows:
sudo docker-compose .github/workflows/pull.yml build
I get the following error:
ERROR: In file './.github/workflows/pull.yml', service 'name' must be a mapping not a string.
I've been googleling this and I find that this could be related to a syntax error but I have never used it, and I cannot find the error. Maybe I'm doing something wrong (it's my first time using docker-compose and yml files)
Any help would be appreciated!
Thanks!

@vsoch
Copy link
Owner

vsoch commented Aug 26, 2020

Why are you using docker-compose with a GitHub workflow? This doesn't make sense to me.

@vsoch
Copy link
Owner

vsoch commented Aug 26, 2020

This is a GitHub workflow (akin to a GitHub action in the repository) you can read about here. The file being yaml does not indicate it's made for docker compose, yaml is akin to json and is a way to structure data, used across different applications.

@mpozuelo-flomics
Copy link
Author

ok! thanks! didn't know about this. sorry!

@vsoch
Copy link
Owner

vsoch commented Aug 26, 2020

No worries! The way this works is that you can copy the workflow file and put it in the same location in one of your repositories, and then update the repos.txt with your containers and it should work with GitHub actions. Good luck!

@vsoch vsoch closed this as completed Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants