-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tag is not pushed when using a selfhosted runner #115
Comments
There seems to be some strange interaction between the action docker container git and the os if the self hosted runner does not have git installed (or has a very old version installed). I'm not clear why this is happening, but installing a recent version of git on my self hosted runner fixed the problem. |
At my company we started tried using self-hosted runners, I am also running into the same issue as BeMacized, I will reach out to our Site Reliability Engineering team to see if they can update the runner's git version per jessewmc's suggestion as see if that resolves the issue. |
Hello - is this still an issue with v1.45.0 and required? I suspect this was fixed by merging #149 |
Has been resolved, please reopen if necesary is used in self hosted runners here for example 1.39.0 https://github.com/bridgecrewio/checkov-action/blob/master/.github/workflows/build.yml |
It possibly caused by docker in docker volume feature, if you run a github runner as docker container and mount workspace from your host server. When github-tag-action run, it will run a new container in your runner container. By docker run defaults, the volume source path is reference from host os system not container file system. To solve this issue, run your github runner container with same workspace path equal to host os. e.g. docker run -d --name Runner -v /var/github-runner:/var/github-runner {RunnerImage} and remember set the workspace path as /var/github-runner |
Gold tip, thanks! |
Up until now, I have been using this action with great success, using GitHub's own runners.
When experimenting with using my home server as a self-hosted runner, I ran into an issue with this action.
The action itself succeeds, but it fails to push a tag and shows a few errors in the logs:
I am personally fine just using GitHub's own runners, but in case you are interested in looking into it:
I run the runner on my home server in docker. It uses the docker image
tcardonne/github-runner:latest
.If any necessary information is missing, I'd be happy to provide.
The text was updated successfully, but these errors were encountered: