Build container image with Cloud Native Buildpacks in GitHub Actions.
on: [push]
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build image
uses: mamezou-tech/buildpacks-action@master
with:
image: 'foo-app'
tag: '1.0.0'
path: 'path/to/foo-app/'
builder: 'gcr.io/paketo-buildpacks/builder:base'
env: 'HELLO=WORLD FOO=BAR BAZ'
- name: Push image
buildpacks v0.13.1 will be executed.
image
: (required) Name of container image.tag
: (optional) Tag of container image. Defaultlatest
path
: (required) Path to target application.builder
: (required) Builder to use.buildpacks
: (optional) URLs or Paths to Custom buildpacks, space separated.env
: (optional) Environment variables, space separated.
See "Cloud Native Buildpack Documentation · Environment variables" for environment valiables.
Example of building with buildpack
on: [push]
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build image
uses: mamezou-tech/buildpacks-action@master
with:
image: 'sample-java-maven-app'
path: 'samples/apps/java-maven/'
builder: 'cnbs/sample-builder:alpine'
buildpacks: 'samples/buildpacks/java-maven samples/buildpacks/hello-processes/ cnbs/sample-package:hello-universe'