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 >}}