ENTRYPOINT is executed twice
I've created a docker image with a custom entrypoint as described in https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/executors/docker.md#the-entrypoint: https://hub.docker.com/r/nkovacs/runner-test/~/dockerfile/
When it executes a build using a simple .gitlab-ci.yml file, the entrypoint is called twice: https://gitlab.com/nkovacs/runner-test/builds/1647419 The first is the normal build script, the second is an eval of an empty string.
If I add an after_script, it evals that instead of the empty string: https://gitlab.com/nkovacs/runner-test/builds/1647440
We partially fixed this problem with !2081 (merged)://gitlab.com/gitlab-org/gitlab-runner/-/issues/25233 because we no longer run after_script if it's empty.
Edited by Steve Xuereb