Sign inSign up

computronix/bitbucket-pipe-container-build

By computronix

•Updated about 4 years ago

This pipe builds a container using docker build.

Image
0

660

computronix/bitbucket-pipe-container-build repository overview

⁠Bitbucket Pipeline Pipe: Container Build

This pipe builds a container using docker build.

⁠YAML Definition

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

⁠Input Parameters

VariableTypeUsage
BITBUCKET_API_OAUTHCONSUMER_KEYRequiredOauth consumer key for the workspace
BITBUCKET_API_OAUTHCONSUMER_SECRETRequiredOauth consumer secret for the workspace
RELEASE_VARIABLE_NAMEOptionalname of variable to create and update

⁠Examples

⁠Basic example:

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:

  • the version of the pipe
  • relevant logs and error messages
  • steps to reproduce

⁠License

Apache 2.0 licenced, see LICENCE⁠ file

⁠Prerequisites

Tag summary

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