| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,6 +112,23 @@ You can also mount your own config file: | |||
| 112 | 112 | ||
| 113 | 113 | $ docker run -it --rm -v /path/to/python-gitlab.cfg:/etc/python-gitlab.cfg registry.gitlab.com/python-gitlab/python-gitlab:latest <command> ... | |
| 114 | 114 | ||
| 115 | + Usage inside GitLab CI | ||
| 116 | + ~~~~~~~~~~~~~~~~~~~~~~ | ||
| 117 | + | ||
| 118 | + If you want to use the Docker image directly inside your GitLab CI as an `image`, you will need to override | ||
| 119 | + the `entrypoint`, `as noted in the official GitLab documentation <https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#override-the-entrypoint-of-an-image>`__: | ||
| 120 | + | ||
| 121 | + .. code-block:: yaml | ||
| 122 | + | ||
| 123 | + Job Name: | ||
| 124 | + image: | ||
| 125 | + name: registry.gitlab.com/python-gitlab/python-gitlab:latest | ||
| 126 | + entrypoint: [""] | ||
| 127 | + before_script: | ||
| 128 | + gitlab --version | ||
| 129 | + script: | ||
| 130 | + gitlab <command> | ||
| 131 | + | ||
| 115 | 132 | Building the image | |
| 116 | 133 | ~~~~~~~~~~~~~~~~~~ | |
| 117 | 134 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments