Docker service image uses latest version instead of the specified one #39248
-
Select Topic AreaBug BodyHello :) First of all, I don't know a lot about github actions. So maybe there is an obvious thing I don't see :) Summary Is it a bug, or is the config wrong? Details You can see the github action config there: https://github.com/strapi/strapi/blob/fix/github-test-mysql5/.github/workflows/tests.yml. api_ce_mysql_5:
runs-on: ubuntu-latest
needs: [lint, unit_back, unit_front]
name: '[CE] API Integration (mysql:5 , node: ${{ matrix.node }})'
strategy:
matrix:
node: [14, 16, 18]
services:
mysql:
image: mysql:5.7.8
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
-e MYSQL_ROOT_PASSWORD=strapi
-e MYSQL_ROOT_HOST="%"
-e MYSQL_USER=strapi
-e MYSQL_PASSWORD=strapi
-e MYSQL_DATABASE=strapi_test
--entrypoint sh mysql -c "exec docker-entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password"
ports:
# Maps tcp port 5432 on service container to the host
- 3306:3306
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: yarn
- uses: ./.github/actions/install-modules
- uses: ./.github/actions/run-api-tests
with:
dbOptions: '--dbclient=mysql --dbhost=localhost --dbport=3306 --dbname=strapi_test --dbusername=strapi --dbpassword=strapi'Related PR |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Here is a list of all the supported tags for mysql images: Try to run the action using one of these tags |
Beta Was this translation helpful? Give feedback.
-
|
The actions/runner doesn't sanitize your options. The docker option entrypoint takes one argument, but you provided 4 arguments. Docker now interprets |
Beta Was this translation helpful? Give feedback.


The actions/runner doesn't sanitize your options.
The docker option entrypoint takes one argument, but you provided 4 arguments.
Docker now interprets
mysqlfrom your entrypoint as the image name fordocker create..., the default tag latest is used because your misparsedmysqlimage name has no tag.Interesting to see that this job passed, including this input error.