How to specify docker image command? #25086
-
Trying to migrate from GitLab CI, and not sure how to specify commands for docker images. Afaik, the mysql image doesn’t have env variables for these command-line options. gitlab-ci.yml
What is the corresponding github yml syntax? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, Many thanks for your feedback! Github action has similar services structure as gitlab CI, please kindly check here. The options can be set in the command in ‘jobs.<job_id>.steps.run’, code sample as below:
|
Beta Was this translation helpful? Give feedback.
-
Thanks, didn’t realize that you could just do a I read about the original feature on GitLab and they said they basically just overwrite the CMD directive in the Dockerfile, so as a workaround, I just created a two-line Dockerfile with that modification myself.
|
Beta Was this translation helpful? Give feedback.
-
Running I used your solution but I removed services config completely and put all options directly into |
Beta Was this translation helpful? Give feedback.
Hi,
Many thanks for your feedback!
Github action has similar services structure as gitlab CI, please kindly check here.
The options can be set in the command in ‘jobs.<job_id>.steps.run’, code sample as below: