Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Docker
Commits
63436b2a
Commit
63436b2a
authored
10 months ago
by
Pierre Smeyers
Browse files
Options
Downloads
Patches
Plain Diff
docs: use variabilized GitLab server FQDN in CI/CD component reference URLs
parent
ede9b047
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+9
-9
9 additions, 9 deletions
README.md
with
9 additions
and
9 deletions
README.md
+
9
−
9
View file @
63436b2a
...
@@ -14,7 +14,7 @@ Add the following to your `.gitlab-ci.yml`:
...
@@ -14,7 +14,7 @@ Add the following to your `.gitlab-ci.yml`:
```
yaml
```
yaml
include
:
include
:
# 1: include the component
# 1: include the component
-
component
:
gitlab.com
/to-be-continuous/docker/gitlab-ci-docker@5.11.0
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/docker/gitlab-ci-docker@5.11.0
# 2: set/override component inputs
# 2: set/override component inputs
inputs
:
inputs
:
build-tool
:
buildah
# ⚠ this is only an example
build-tool
:
buildah
# ⚠ this is only an example
...
@@ -529,7 +529,7 @@ Here is a `.gitlab-ci.yaml` using an external Docker registry:
...
@@ -529,7 +529,7 @@ Here is a `.gitlab-ci.yaml` using an external Docker registry:
```
yaml
```
yaml
include
:
include
:
-
component
:
gitlab.com
/to-be-continuous/docker/gitlab-ci-docker@5.7.0
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/docker/gitlab-ci-docker@5.7.0
inputs
:
inputs
:
snapshot-image
:
"
registry.acme.host/$CI_PROJECT_NAME/snapshot:$CI_COMMIT_REF_SLUG"
snapshot-image
:
"
registry.acme.host/$CI_PROJECT_NAME/snapshot:$CI_COMMIT_REF_SLUG"
release-image
:
"
registry.acme.host/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME"
release-image
:
"
registry.acme.host/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME"
...
@@ -544,7 +544,7 @@ Here is a `.gitlab-ci.yaml` that builds 2 Docker images from the same project (u
...
@@ -544,7 +544,7 @@ Here is a `.gitlab-ci.yaml` that builds 2 Docker images from the same project (u
```
yaml
```
yaml
include
:
include
:
-
component
:
gitlab.com
/to-be-continuous/docker/gitlab-ci-docker@5.7.0
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/docker/gitlab-ci-docker@5.7.0
.docker-base
:
.docker-base
:
parallel
:
parallel
:
...
@@ -597,9 +597,9 @@ With:
...
@@ -597,9 +597,9 @@ With:
```
yaml
```
yaml
include
:
include
:
# main template
# main template
-
component
:
gitlab.com
/to-be-continuous/docker/gitlab-ci-docker@5.7.0
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/docker/gitlab-ci-docker@5.7.0
# Vault variant
# Vault variant
-
component
:
gitlab.com
/to-be-continuous/docker/gitlab-ci-docker-vault@5.7.0
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/docker/gitlab-ci-docker-vault@5.7.0
inputs
:
inputs
:
# audience claim for JWT
# audience claim for JWT
vault-oidc-aud
:
"
https://vault.acme.host"
vault-oidc-aud
:
"
https://vault.acme.host"
...
@@ -646,7 +646,7 @@ to use the snapshot image repository (will host your snapshot image as well as c
...
@@ -646,7 +646,7 @@ to use the snapshot image repository (will host your snapshot image as well as c
```
yaml
```
yaml
include
:
include
:
-
component
:
gitlab.com
/to-be-continuous/docker/gitlab-ci-docker@5.7.0
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/docker/gitlab-ci-docker@5.7.0
inputs
:
inputs
:
build-tool
:
"
kaniko"
# Only Kaniko has been proved to work for this use case YET
build-tool
:
"
kaniko"
# Only Kaniko has been proved to work for this use case YET
# untested & unverified container image
# untested & unverified container image
...
@@ -654,7 +654,7 @@ include:
...
@@ -654,7 +654,7 @@ include:
# ⚠ don't forget to create the '{GCP_REGION}-docker.pkg.dev/{GCP_PROJECT_ID}/{YOUR_REPOSITORY}/{YOUR_IMAGE_NAME}/snapshot/cache' repo for Kaniko
# ⚠ don't forget to create the '{GCP_REGION}-docker.pkg.dev/{GCP_PROJECT_ID}/{YOUR_REPOSITORY}/{YOUR_IMAGE_NAME}/snapshot/cache' repo for Kaniko
# validated container image (published)
# validated container image (published)
release-image
:
"
{GCP_REGION}-docker.pkg.dev/{GCP_PROJECT_ID}/{YOUR_REPOSITORY}/{YOUR_IMAGE_NAME}:$CI_COMMIT_REF_NAME"
release-image
:
"
{GCP_REGION}-docker.pkg.dev/{GCP_PROJECT_ID}/{YOUR_REPOSITORY}/{YOUR_IMAGE_NAME}:$CI_COMMIT_REF_NAME"
-
component
:
gitlab.com
/to-be-continuous/docker/gitlab-ci-docker-gcp@5.7.0
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/docker/gitlab-ci-docker-gcp@5.7.0
inputs
:
inputs
:
# default WIF provider
# default WIF provider
gcp-oidc-provider
:
"
projects/{GCP_PROJECT_NUMBER}/locations/global/workloadIdentityPools/{YOUR_WIF_POOL_NAME}/providers/gitlab-diod"
gcp-oidc-provider
:
"
projects/{GCP_PROJECT_NUMBER}/locations/global/workloadIdentityPools/{YOUR_WIF_POOL_NAME}/providers/gitlab-diod"
...
@@ -719,14 +719,14 @@ then set the required configuration.
...
@@ -719,14 +719,14 @@ then set the required configuration.
```
yaml
```
yaml
include
:
include
:
-
component
:
gitlab.com
/to-be-continuous/docker/gitlab-ci-docker@5.7.0
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/docker/gitlab-ci-docker@5.7.0
inputs
:
inputs
:
# untested & unverified container image
# untested & unverified container image
snapshot-image
:
"
123456789012.dkr.ecr.us-east-1.amazonaws.com/$CI_PROJECT_PATH_SLUG/snapshot:$CI_COMMIT_REF_SLUG"
snapshot-image
:
"
123456789012.dkr.ecr.us-east-1.amazonaws.com/$CI_PROJECT_PATH_SLUG/snapshot:$CI_COMMIT_REF_SLUG"
# ⚠ don't forget to create the '123456789012.dkr.ecr.us-east-1.amazonaws.com/$CI_PROJECT_PATH/snapshot/cache' repo for Kaniko
# ⚠ don't forget to create the '123456789012.dkr.ecr.us-east-1.amazonaws.com/$CI_PROJECT_PATH/snapshot/cache' repo for Kaniko
# validated container image (published)
# validated container image (published)
release-image
:
"
123456789012.dkr.ecr.us-east-1.amazonaws.com/$CI_PROJECT_PATH_SLUG:$CI_COMMIT_REF_NAME"
release-image
:
"
123456789012.dkr.ecr.us-east-1.amazonaws.com/$CI_PROJECT_PATH_SLUG:$CI_COMMIT_REF_NAME"
-
component
:
gitlab.com
/to-be-continuous/docker/gitlab-ci-docker-ecr@5.7.0
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/docker/gitlab-ci-docker-ecr@5.7.0
inputs
:
inputs
:
# default Role ARN (using OIDC authentication method)
# default Role ARN (using OIDC authentication method)
aws-oidc-role-arn
:
"
arn:aws:iam::123456789012:role/gitlab-ci"
aws-oidc-role-arn
:
"
arn:aws:iam::123456789012:role/gitlab-ci"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment