Skip to content

Commit

Permalink
Adapt Makefile run target to allow symlinks to secrets
Browse files Browse the repository at this point in the history
* Resolve symlinks to env files or secrets to mount into the
github-runner container when developing or debugging
  • Loading branch information
dghubble committed Jun 22, 2024
1 parent f62df35 commit daf2035
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export CGO_ENABLED:=0

VERSION=$(shell git describe --tags --match=v* --always --dirty)
VERSION=$(shell git describe --tags --match=v* --always)
LD_FLAGS="-w -X github.com/poseidon/github-runner/cmd.version=$(VERSION)"

REPO=github.com/poseidon/github-runner
Expand Down Expand Up @@ -53,7 +53,7 @@ manifest:
run:
podman run \
-it \
--env-file ~/.config/github-runner/github-runner.env \
-v ~/.config/github-runner:/etc/github-runner:Z \
-v /run:/run \
--env-file ~/.config/github-runner/poseidon.env \
-v $(shell readlink -f ~/.config/github-runner/poseidon.env):/etc/github-runner/dghubble-org.env \
-v $(shell readlink -f ~/.config/github-runner/github-app.key.pem):/etc/github-runner/github-app.key.pem \
localhost/poseidon/github-runner:$(VERSION)-amd64

0 comments on commit daf2035

Please sign in to comment.