Skip to content

Commit

Permalink
feat(action): support transer image version
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Aug 18, 2024
1 parent e4f355d commit 960e21d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG JZERO_VERSION=latest
ARG VERSION=latest

FROM jaronnie/jzero:${JZERO_VERSION}
FROM jaronnie/jzero:${VERSION}

CMD ["jzero", "-h"]
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# jzero-action

jzero github action
jzero github action for running [jzero](https://github.com/jzero-io/jzero) command

## Usage

```yaml
name: jzero-action-test
Expand All @@ -21,4 +23,10 @@ jobs:
- uses: jzero-io/[email protected]
with:
args: gen sdk --module github.com/jzero/test -d test
version: v0.23.4
```
## References
* https://docs.github.com/en/actions/sharing-automations/creating-actions/creating-a-docker-container-action
* https://github.com/orgs/community/discussions/115697
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ inputs:
runs:
using: 'docker'
image: 'Dockerfile'
build-args:
JZERO_VERSION: ${{ inputs.version }}
args:
- ${{ inputs.args }}
- ${{ inputs.args }}
- '--build-arg'
- 'VERSION=${{inputs.version}}'

0 comments on commit 960e21d

Please sign in to comment.