Skip to content

Commit

Permalink
Prepare for next release: Update plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
pzeballos authored Mar 1, 2024
1 parent d262dbd commit 6586087
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The following pipeline will run `test.sh` inside a `app` service container using
steps:
- command: test.sh
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
run: app
```
Expand All @@ -19,7 +19,7 @@ steps:
```yml
steps:
- plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
run: app
command: ["custom", "command", "values"]
```
Expand All @@ -30,7 +30,7 @@ The plugin will honor the value of the `COMPOSE_FILE` environment variable if on
steps:
- command: test.sh
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
run: app
config: docker-compose.tests.yml
env:
Expand All @@ -46,15 +46,15 @@ steps:
- plugins:
- docker-login#v2.0.1:
username: xyz
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
build: app
push: app:index.docker.io/myorg/myrepo:tag
- wait
- command: test.sh
plugins:
- docker-login#v2.0.1:
username: xyz
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
run: app
```

Expand All @@ -71,7 +71,7 @@ steps:
- command: generate-dist.sh
artifact_paths: "dist/*"
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
run: app
volumes:
- "./dist:/folder/dist"
Expand All @@ -95,7 +95,7 @@ this plugin offers a `environment` block of its own:
steps:
- command: generate-dist.sh
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
run: app
env:
- BUILDKITE_BUILD_NUMBER
Expand All @@ -113,7 +113,7 @@ Alternatively, you can have the plugin add all environment variables defined for
steps:
- command: use-vars.sh
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
run: app
propagate-environment: true
```
Expand Down Expand Up @@ -148,7 +148,7 @@ Alternatively, if you want to set build arguments when pre-building an image, th
steps:
- command: generate-dist.sh
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
build: app
args:
- MY_CUSTOM_ARG=panda
Expand All @@ -165,7 +165,7 @@ If you have multiple steps that use the same service/image (such as steps that r
steps:
- label: ":docker: Build"
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
build: app
push: app
Expand All @@ -175,7 +175,7 @@ steps:
command: test.sh
parallelism: 25
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
run: app
```

Expand All @@ -191,7 +191,7 @@ steps:
agents:
queue: docker-builder
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
build:
- app
- tests
Expand All @@ -205,7 +205,7 @@ steps:
command: test.sh
parallelism: 25
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
run: tests
```

Expand All @@ -217,7 +217,7 @@ If you want to push your Docker images ready for deployment, you can use the `pu
steps:
- label: ":docker: Push"
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
push: app
```

Expand All @@ -227,7 +227,7 @@ To push multiple images, you can use a list:
steps:
- label: ":docker: Push"
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
push:
- first-service
- second-service
Expand All @@ -239,7 +239,7 @@ If you want to push to a specific location (that's not defined as the `image` in
steps:
- label: ":docker: Push"
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
push:
- app:index.docker.io/myorg/myrepo/myapp
- app:index.docker.io/myorg/myrepo/myapp:latest
Expand All @@ -253,7 +253,7 @@ A newly spawned agent won't contain any of the docker caches for the first run w
steps:
- label: ":docker Build an image"
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
build: app
push: app:index.docker.io/myorg/myrepo:my-branch
cache-from:
Expand All @@ -264,7 +264,7 @@ steps:
- label: ":docker: Push to final repository"
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
push:
- app:myregistry:port/myrepo/myapp:latest
```
Expand All @@ -277,7 +277,7 @@ The values you add in the `cache-from` will be mapped to the corresponding servi
steps:
- label: ":docker Build an image"
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
build: app
push: app:index.docker.io/myorg/myrepo:my-branch
cache-from:
Expand All @@ -288,7 +288,7 @@ steps:
- label: ":docker: Push to final repository"
plugins:
- docker-compose#v5.1.0:
- docker-compose#v5.2.0:
push:
- app:myregistry:port/myrepo/myapp:latest
```

0 comments on commit 6586087

Please sign in to comment.