Skip to content

Commit

Permalink
feat: prefix shim flag names (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdk authored Feb 27, 2024
1 parent b3dfb90 commit 1338b71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ runs:
using: docker
image: docker://ghcr.io/joshdk/actions-docker-shim:v0.0.2
+ args:
+ - --image-tag=snapshot
+ - --shim-image-tag=snapshot
```

If your image isn't named the same as your action repository, that can be overridden as well.
Expand All @@ -103,8 +103,8 @@ runs:
using: docker
image: docker://ghcr.io/joshdk/actions-docker-shim:v0.0.2
args:
- --image-tag=snapshot
+ - --image=example/some-other-image
- --shim-image-tag=snapshot
+ - --shim-image=example/some-other-image
```

### Authentication
Expand All @@ -125,7 +125,7 @@ runs:
using: docker
image: docker://ghcr.io/joshdk/actions-docker-shim:v0.0.2
+ args:
+ - --token-env=INPUT_CUSTOM-TOKEN
+ - --shim-token-env=INPUT_CUSTOM-TOKEN
```

## License
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ func main() {
//nolint:forbidigo,wsl
func mainCmd() error {
var imageRepo string
flag.StringVar(&imageRepo, "image", "", "ghcr.io image to run")
flag.StringVar(&imageRepo, "shim-image", "", "ghcr.io image to run")
var imageTag string
flag.StringVar(&imageTag, "image-tag", "", "ghcr.io image tag to run")
flag.StringVar(&imageTag, "shim-image-tag", "", "ghcr.io image tag to run")
var tokenEnv string
flag.StringVar(&tokenEnv, "token-env", "", "env var to use for github token")
flag.StringVar(&tokenEnv, "shim-token-env", "", "env var to use for github token")
flag.Parse()

if imageRepo == "" {
Expand Down

0 comments on commit 1338b71

Please sign in to comment.