You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 16, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+21-3Lines changed: 21 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,11 @@
1
1
# Using Podman to power your Gitlab CI pipeline
2
2
3
3
1.[Installation and Setup](#installation-and-setup)
4
-
1.[Installing the gitlab-runner](#installing-the-gitlab-runner)
5
-
2.[Setting up a Runner Instance](#setting-up-a-runner-instance)
4
+
1.[Set up rootless Podman for the gitlab-runner user](#set-up-rootless-podman-for-the-gitlab-runner-user)
5
+
2.[Installing the gitlab-runner](#installing-the-gitlab-runner)
6
+
3.[Setting up a Runner Instance](#setting-up-a-runner-instance)
6
7
2.[Tweaking the Installation](#tweaking-the-installation)
8
+
1.[Private Registries](#private-registries)
7
9
3.[License](#license)
8
10
4.[Links](#links)
9
11
@@ -72,10 +74,26 @@ The following variables are supported right now:
72
74
73
75
*`PODMAN_RUN_ARGS`: Customize how Podman spawns the containers.
74
76
75
-
Podman supports access to private Gitlab registries.
77
+
### Private Registries
78
+
79
+
Podman supports access to private registries.
76
80
You can set the `DOCKER_AUTH_CONFIG` variable under **Settings → CI / CD** and provide the credentials for accessing the private registry.
77
81
Details how the variable has to look can be found under [using statically defined credentials][gitlab-static-credentials] in the Gitlab documentation.
78
82
83
+
Additionally, there are multiple ways to authenticate against Gitlab Registries.
84
+
The script uses a configured deploy token (via `$CI_DEPLOY_PASSWORD`) to login.
85
+
Alternatively, the CI job also provides access to the registry for the duraion of a single job.
86
+
The scipt uses variables `$CI_JOB_TOKEN` and `$CI_REGISTRY_PASSWORD`, if available, to log into the registry.
87
+
88
+
The four methods are tried in order until one succeeds:
89
+
90
+
1.`DOCKER_AUTH_CONFIG`
91
+
2.`CI_DEPLOY_PASSWORD`
92
+
3.`CI_JOB_TOKEN`
93
+
4.`CI_REGISTRY_PASSWORD`
94
+
95
+
More details about different authentication variants in the official documentation: <https://docs.gitlab.com/ee/user/packages/container_registry/index.html#authenticate-by-using-gitlab-cicd>
0 commit comments