You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've deployed gha-runner-scale-set helm chart to use GitHub Actions for my organization. My goal is to have the runner builds a Docker image, then push it to private registry. I installed gha-runner-scale-set helm chart by this command:
The runner is working properly with simple workflow file, it is able to log into private registry, but it fails on docker build step, for more specific, it hangs on step RUN --mount=type=ssh poetry install --no-interaction.
FROM python:3.12
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN python -m pip install poetry
RUN poetry config virtualenvs.create false
COPY pyproject.toml /app
RUN --mount=type=ssh mkdir -p ~/.ssh
RUN --mount=type=ssh ssh-keyscan github.com > ~/.ssh/known_hosts
RUN --mount=type=ssh poetry install --no-interaction
CMD ["python", "app.py"]
It stucks or hanging at #12 41.63 - Installing core (0.1.1 8666dad) for hours in GitHub actions.
I can't be sure where problem is (my ssh key, my hosted runner or my private repo, ...) I did try to change runs-on to ubuntu-latest to use Github-hosted runner and it works.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've deployed
gha-runner-scale-set
helm chart to use GitHub Actions for my organization. My goal is to have the runner builds a Docker image, then push it to private registry. I installedgha-runner-scale-set
helm chart by this command:The runner is working properly with simple workflow file, it is able to log into private registry, but it fails on docker build step, for more specific, it hangs on step
RUN --mount=type=ssh poetry install --no-interaction
.This is my workflow file.
This is my pyproject.toml file:
and this is my Dockerfile:
It stucks or hanging at
#12 41.63 - Installing core (0.1.1 8666dad)
for hours in GitHub actions.I can't be sure where problem is (my ssh key, my hosted runner or my private repo, ...) I did try to change
runs-on
toubuntu-latest
to use Github-hosted runner and it works.I really appreciate everyone helps
Beta Was this translation helpful? Give feedback.
All reactions