https://github.com/mamezou-tech/buildpacks-action
Build container image with Cloud Native Buildpacks in GitHub Actions.
https://github.com/mamezou-tech/buildpacks-action
cloud-native-buildpacks container-image github-actions
Last synced: about 1 year ago
JSON representation
Build container image with Cloud Native Buildpacks in GitHub Actions.
- Host: GitHub
- URL: https://github.com/mamezou-tech/buildpacks-action
- Owner: mamezou-tech
- License: mit
- Created: 2020-05-26T15:08:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-09T05:29:54.000Z (over 3 years ago)
- Last Synced: 2024-10-19T20:15:46.555Z (almost 2 years ago)
- Topics: cloud-native-buildpacks, container-image, github-actions
- Language: Shell
- Homepage:
- Size: 23.4 KB
- Stars: 27
- Watchers: 3
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @mamezou-tech/buildpacks-action

Build container image with [Cloud Native Buildpacks](https://buildpacks.io) in GitHub Actions.
```yaml
on: [push]
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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/pack v0.29.0 will be executed.
## Inputs
- `image` : (required) Name of container image.
- `tag` : (optional) Tag of container image. Default `latest`
- `path` : (optional) Path to target application, defaults to the current directory.
- `builder` : (required) Builder to use.
- `buildpacks` : (optional) URLs or Paths to Custom buildpacks, space separated.
- `env` : (optional) Environment variables, space separated.
- `env_files` : (optional) Files containing build time environment variables, space separated.
- `publish` : (optional) Publish the built image (requires docker to be logged in)
- `debug_mode` : (optional) Only print the command to be run. Will not build container image
> See "[Cloud Native Buildpack Documentation · Environment variables](https://buildpacks.io/docs/app-developer-guide/environment-variables/)" for environment valiables.
Example of building with buildpack
```yaml
on: [push]
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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'
publish: true
```