Skip to content

Commit

Permalink
docs: example yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Nov 24, 2022
1 parent c24596f commit 427db7b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
# bento_build_action
GitHub CI composite action to build development and production containers for Bento components.

To use this in a Bento service repository, create a GitHub Actions workflow
which looks something like the following:

```yaml
name: Build and push bento_my_cool_service
on:
release:
types: [ published ]
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build-push:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Run Bento build action
uses: bento-platform/[email protected]
with:
registry: ghcr.io
registry-username: ${{ github.actor }}
registry-password: ${{ secrets.GITHUB_TOKEN }}
image-name: ghcr.io/bento-platform/bento_my_cool_service
development-dockerfile: dev.Dockerfile
dockerfile: Dockerfile
```

0 comments on commit 427db7b

Please sign in to comment.