Skip to content

Commit

Permalink
convert build cloud CI platform tabs to linkable sections (#22111)
Browse files Browse the repository at this point in the history
<!--Delete sections as needed -->

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

<!-- Notes for reviewers here -->
<!-- List applicable reviews (optionally @tag reviewers) -->

- [ ] Technical review
- [ ] Editorial review
- [ ] Product review

---------

Co-authored-by: Allie Sadler <[email protected]>
  • Loading branch information
nico1510 and aevesdocker authored Feb 27, 2025
1 parent a39967f commit 877b29c
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions content/manuals/build-cloud/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
>
Expand Down Expand Up @@ -87,8 +88,7 @@ jobs:
outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry' }}
```
{{< /tab >}}
{{< tab name="GitLab" >}}
### GitLab
```yaml
default:
Expand Down Expand Up @@ -133,8 +133,7 @@ build_cache:
.
```
{{< /tab >}}
{{< tab name="Circle CI" >}}
### Circle CI
```yaml
version: 2.1
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -273,8 +271,7 @@ docker buildx build \
.
```

{{< /tab >}}
{{< tab name="Jenkins" >}}
### Jenkins

```groovy
pipeline {
Expand Down Expand Up @@ -309,8 +306,7 @@ pipeline {
}
```

{{< /tab >}}
{{< tab name="Travis CI" >}}
### Travis CI

```yaml
language: minimal
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -372,8 +367,7 @@ pipelines:
- docker
```
{{< /tab >}}
{{< tab name="Shell" >}}
### Shell script
```bash
#!/bin/bash
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -442,6 +435,3 @@ docker buildx create --use --driver cloud "<ORG>/default"
# Build the image build
docker compose build
```

{{< /tab >}}
{{< /tabs >}}

0 comments on commit 877b29c

Please sign in to comment.