Skip to content

Commit cca3c30

Browse files
committed
Update release
1 parent b557697 commit cca3c30

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
go-version: '1.24.x'
1919
- uses: ko-build/[email protected]
20-
- run: ko build
20+
- run: ko build --bare
2121
releases-matrix:
2222
name: Release Go Binary
2323
runs-on: ubuntu-latest

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ Binaries are available from the [releases](https://github.com/reteps/dockerfmt/r
1414
go install github.com/reteps/dockerfmt@latest
1515
```
1616

17+
### docker
18+
19+
```bash
20+
docker run --rm -v $(pwd):/pwd ghcr.io/reteps/dockerfmt:latest /pwd/tests/in/run2.dockerfile
21+
```
22+
1723
## Usage
1824

1925
```output

cmd/root.go

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ func Run(cmd *cobra.Command, args []string) {
4646
log.Fatalf("Failed to read from stdin: %v", err)
4747
}
4848

49+
if len(inputBytes) <= 1 {
50+
cmd.Help()
51+
os.Exit(0)
52+
}
53+
4954
if !processInput("stdin", inputBytes, config) {
5055
allFormatted = false // Mark as not formatted if check fails
5156
}

cmd/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ var versionCmd = &cobra.Command{
1414
Use: "version",
1515
Short: "Print the version number of dockerfmt",
1616
Run: func(cmd *cobra.Command, args []string) {
17-
fmt.Println("dockerfmt 0.3.6")
17+
fmt.Println("dockerfmt 0.3.7")
1818
},
1919
}

0 commit comments

Comments
 (0)