Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
to-be-continuous
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
Hide 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`:
```
yaml
include
:
# 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
inputs
:
build-tool
:
buildah
# ⚠ this is only an example
...
...
@@ -529,7 +529,7 @@ Here is a `.gitlab-ci.yaml` using an external Docker registry:
```
yaml
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
:
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"
...
...
@@ -544,7 +544,7 @@ Here is a `.gitlab-ci.yaml` that builds 2 Docker images from the same project (u
```
yaml
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
:
parallel
:
...
...
@@ -597,9 +597,9 @@ With:
```
yaml
include
:
# 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
-
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
:
# audience claim for JWT
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
```
yaml
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
:
build-tool
:
"
kaniko"
# Only Kaniko has been proved to work for this use case YET
# untested & unverified container image
...
...
@@ -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
# validated container image (published)
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
:
# default WIF provider
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.
```
yaml
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
:
# untested & unverified container image
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
# validated container image (published)
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
:
# default Role ARN (using OIDC authentication method)
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