An action to build your source into a container image using buildpacks
This step example will autodetect the source code, build it with the correct buildpack and then push it to dockerhub. It is expected that this step will run after a docker-login step. A full example workflow can be found here.
- name: build
uses: crswty/buildpack-action@master
env:
IMAGE_NAME: crswty/spring-music:latest
PUBLISH: true
BUILDER: cloudfoundry/cnb:bionic
CONTEXT: nodejs
VARS: db=mysql env=dev
Configuration is provided as environment variables.
Option | Description | Default |
---|---|---|
IMAGE_NAME | The name & tag of the image | required |
PUBLISH | If set, pushes the built images | false |
BUILDER | Buildpack builder Image | cloudfoundry/cnb:bionic |
CONTEXT | Relative folder path | git root |
VARS | Environment variables for the build |