Merge pull request 'keep .git on build to extract version from tag' (#15) from earl-warren/runner:wip-release into main

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/15
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
earl-warren 2023-04-03 15:14:31 +00:00
commit 9a6cae89e7
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,2 @@
.git
Dockerfile Dockerfile
forgejo-runner forgejo-runner

View file

@ -48,4 +48,7 @@ jobs:
# Minimal sanity checks. e2e test is for the setup-forgejo action # Minimal sanity checks. e2e test is for the setup-forgejo action
# and the infrastructure playbook. # and the infrastructure playbook.
# #
curl -sS $url/root/runner/releases/download/v1.2.3/forgejo-runner-amd64 > /dev/null curl -L -sS $url/root/runner/releases/download/v1.2.3/forgejo-runner-amd64 > forgejo-runner
chmod +x forgejo-runner
./forgejo-runner --version | grep 1.2.3