This pipe builds a container using docker build.
660
This pipe builds a container using docker build.
Add the following snippet to the script section of your bitbucket-pipelines.yml file:
script:
- pipe: benchmarkcorp/bitbucket-pipe-container-build:latest
variables:
BITBUCKET_API_OAUTHCONSUMER_KEY: '<string>'
BITBUCKET_API_OAUTHCONSUMER_SECRET: '<string>'
| Variable | Type | Usage |
|---|---|---|
| BITBUCKET_API_OAUTHCONSUMER_KEY | Required | Oauth consumer key for the workspace |
| BITBUCKET_API_OAUTHCONSUMER_SECRET | Required | Oauth consumer secret for the workspace |
| RELEASE_VARIABLE_NAME | Optional | name of variable to create and update |
Example to create and update the repository variable RELEASE_VERSION:
script:
- pipe: benchmarkcorp/bitbucket-pipe-container-build:latest
variables:
BITBUCKET_API_OAUTHCONSUMER_KEY: '<string>'
BITBUCKET_API_OAUTHCONSUMER_SECRET: '<string>'
Or using a custom release variable MY_RELEASE_VERSION::
script:
- pipe: benchmarkcorp/bitbucket-pipe-container-build:latest
variables:
BITBUCKET_API_OAUTHCONSUMER_KEY: '<string>'
BITBUCKET_API_OAUTHCONSUMER_SECRET: '<string>'
RELEASE_VARIABLE_NAME: 'MY_RELEASE_VERSION'
If you're reporting an issue, please include:
Apache 2.0 licenced, see LICENCE file
Content type
Image
Digest
sha256:8603f3c92…
Size
11.7 MB
Last updated
about 4 years ago
docker pull computronix/bitbucket-pipe-container-build:0.11.1