Skip to content

Commit

Permalink
fix: docker env init (#39)
Browse files Browse the repository at this point in the history
* fix: docker env init

* fix: allow 'kuboreleaser env' to read .env

Closes #40

* fix: remove ephemeral container after use

no need to keep them, just waste space
  • Loading branch information
lidel authored Aug 28, 2024
1 parent 775006e commit a0746c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion kuboreleaser
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/env bash

docker run -it --env-file .env kuboreleaser "$@"
if ! test -f ".env"; then
./actions/embed/.env.sh
echo ".env created, try executing kuboreleaser again"
exit 0
fi

docker run -it --rm --env-file .env -v $(pwd)/.env:/.env:ro kuboreleaser "$@"

0 comments on commit a0746c2

Please sign in to comment.