Skip to content

Commit

Permalink
Since some versions are configured to deprecated early, disabling it …
Browse files Browse the repository at this point in the history
…to avoid runners hangs
  • Loading branch information
lsilvatux committed Jul 21, 2023
1 parent 424ad5f commit bda46a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.protoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM namely/protoc-all AS base
ARG VERSION=2.304.0
ARG VERSION=2.306.0
ENV GO_VERSION=1.16
ENV PATH="/usr/local/go/bin:${PATH}"

Expand Down Expand Up @@ -31,4 +31,4 @@ RUN curl -O -L https://github.com/actions/runner/releases/download/v${VERSION}/
COPY --chown=github-runner start.sh /actions-runner/
COPY --chown=github-runner remove.sh /actions-runner/

ENTRYPOINT ["./start.sh"]
ENTRYPOINT ["./start.sh"]
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

TOKEN=$(curl -X POST 2>/dev/null -H "Authorization: token ${GITHUB_ACCESS_TOKEN}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/${ORG}/actions/runners/registration-token | jq '.token' | sed s/\"//g)

/actions-runner/config.sh --unattended --labels ${LABELS} --name ${HOSTNAME} --url "https://github.com/${ORG}" --token "${TOKEN}" --ephemeral --disableupdate --replace
/actions-runner/config.sh --unattended --labels ${LABELS} --name ${HOSTNAME} --url "https://github.com/${ORG}" --token "${TOKEN}" --ephemeral --replace

/actions-runner/run.sh

exit 0
exit 0

0 comments on commit bda46a8

Please sign in to comment.