Skip to content

How to specify docker image command? #25086

Discussion options

You must be logged in to vote

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:

services:
      mysql:
        image: mysql:5.7
        env:
          MYSQL_ROOT_PASSWORD: password
    steps:
      - name: echo
        run: |
           docker run -d mysql:5.7 --lower-case-table-names=1 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants