Skip to content

Commit

Permalink
add docker build gh action
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Balogh <[email protected]>
  • Loading branch information
pbalogh-sa committed Sep 17, 2020
1 parent 8b03a0b commit 17f44a5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Build
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
branches:
- docker-build

jobs:
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build jwt-to-rbac
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
registry: ghcr.io
repository: banzaicloud/banzai-cli
dockerfile: Dockerfile
tag_with_ref: true
add_git_labels: true
tags: latest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Select organization
$ docker run --rm -ti -v $(PWD)/banzai-cli:/root/ ghcr.io/banzaicloud/banzai-cli organization select
```

List clusters:
List clusters
```
$ docker run --rm -ti -v $(PWD)/banzai-cli:/root/ ghcr.io/banzaicloud/banzai-cli cluster list
```
Expand Down

0 comments on commit 17f44a5

Please sign in to comment.