I have successfully setup two static analysis jobs within my workflow, and I feel like I got all the way up to the final command … But cannot figure out the last bit!
In this particular job I have 4 services all successfully setup, but they cannot seem to connect to the volumes I specified. I am trying to map my repository to the /var/www/ folder inside the container. Here is my workflow, the first two jobs run perfectly but when I try to access the repo files within the container it is empty:
options: --name opus_app
- name: Checkout Code
- name: Print directory
run: docker exec opus_app pwd
In case anyone finds this issue, the real issue is that you cannot map volumes to your codebase BEFORE checking out your codebase … so the volumes inside of services is a bit limited to only sharing data between services, where it gets the data from not too sure, but I got around this by using docker-compose to build my services AFTER checking out the code!