Skip to content

Commit

Permalink
add .env to tasks
Browse files Browse the repository at this point in the history
add .env to tasks
  • Loading branch information
notnmeyer committed Jan 10, 2024
1 parent 3a314f6 commit a359147
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ cmds = ["go run main.go {{.CLI_ARGS}}"]
cmds = ["go test ./... {{.CLI_ARGS}}"]

[tasks.build]
dotenv = ".env"
cmds = [
"docker context use default",
"goreleaser build --clean --snapshot {{.CLI_ARGS}}",
]

# `tsk release -- --snapshot` to build images without publishing
[tasks.release]
dotenv = ".env"
cmds = [
"docker context use default",
"goreleaser release --clean {{.CLI_ARGS}}",
Expand Down

0 comments on commit a359147

Please sign in to comment.