From 56909d2f2043aebbc1c6c7db7610aaece322a26a Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 3 Apr 2023 16:42:45 +0200 Subject: [PATCH] keep .git on build to extract version from tag Otherwise the version is empty and --version does not work Fixes: https://code.forgejo.org/forgejo/runner/issues/14 --- .dockerignore | 1 - .forgejo/workflows/integration.yml | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index d86c502..7b6d2b2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,2 @@ -.git Dockerfile forgejo-runner diff --git a/.forgejo/workflows/integration.yml b/.forgejo/workflows/integration.yml index bbb7bee..2eaa8e8 100644 --- a/.forgejo/workflows/integration.yml +++ b/.forgejo/workflows/integration.yml @@ -48,4 +48,7 @@ jobs: # Minimal sanity checks. e2e test is for the setup-forgejo action # 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 +