mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
convert build cloud CI platform tabs to linkable sections (#22111)
<!--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 <102604716+aevesdocker@users.noreply.github.com>
This commit is contained in:
@@ -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 "<ORG>/default"
|
||||
# Build the image build
|
||||
docker compose build
|
||||
```
|
||||
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
Reference in New Issue
Block a user