From 877b29ca1b2611548b0c2d46633971d295188d77 Mon Sep 17 00:00:00 2001 From: Nicolas Beck Date: Thu, 27 Feb 2025 10:45:12 +0100 Subject: [PATCH] convert build cloud CI platform tabs to linkable sections (#22111) ## Description This change converts the CI platform examples from Hugo tab shortcodes to standard markdown sections with anchor links so that we can hyperlink to them from app.docker.com ## Related issues or tickets none ## Reviews - [ ] Technical review - [ ] Editorial review - [ ] Product review --------- Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com> --- content/manuals/build-cloud/ci.md | 32 +++++++++++-------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/content/manuals/build-cloud/ci.md b/content/manuals/build-cloud/ci.md index bd66ec53f42..71a709f3032 100644 --- a/content/manuals/build-cloud/ci.md +++ b/content/manuals/build-cloud/ci.md @@ -32,8 +32,9 @@ See [Loading build results](./usage/#loading-build-results) for details. > Builds on Docker Build Cloud have a timeout limit of two hours. Builds that > run for longer than two hours are automatically cancelled. -{{< tabs >}} -{{< tab name="GitHub Actions" >}} +## CI platform examples + +### GitHub Actions > [!NOTE] > @@ -87,8 +88,7 @@ jobs: outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry' }} ``` -{{< /tab >}} -{{< tab name="GitLab" >}} +### GitLab ```yaml default: @@ -133,8 +133,7 @@ build_cache: . ``` -{{< /tab >}} -{{< tab name="Circle CI" >}} +### Circle CI ```yaml version: 2.1 @@ -195,8 +194,7 @@ workflows: - build_push ``` -{{< /tab >}} -{{< tab name="Buildkite" >}} +### Buildkite The following example sets up a Buildkite pipeline using Docker Build Cloud. The example assumes that the pipeline name is `build-push-docker` and that you @@ -273,8 +271,7 @@ docker buildx build \ . ``` -{{< /tab >}} -{{< tab name="Jenkins" >}} +### Jenkins ```groovy pipeline { @@ -309,8 +306,7 @@ pipeline { } ``` -{{< /tab >}} -{{< tab name="Travis CI" >}} +### Travis CI ```yaml language: minimal @@ -341,8 +337,7 @@ script: | --tag "$IMAGE_NAME" . ``` -{{< /tab >}} -{{< tab name="BitBucket Pipelines" >}} +### BitBucket Pipelines ```yaml # Prerequisites: $DOCKER_USER, $DOCKER_PAT setup as deployment variables @@ -372,8 +367,7 @@ pipelines: - docker ``` -{{< /tab >}} -{{< tab name="Shell" >}} +### Shell script ```bash #!/bin/bash @@ -407,8 +401,7 @@ docker buildx build \ . ``` -{{< /tab >}} -{{< tab name="Docker Compose" >}} +### Docker Compose Use this implementation if you want to use `docker compose build` with Docker Build Cloud in CI. @@ -442,6 +435,3 @@ docker buildx create --use --driver cloud "/default" # Build the image build docker compose build ``` - -{{< /tab >}} -{{< /tabs >}}