Skip to content
Discussion options

You must be logged in to vote

For future reference, I got around to fixing this for myself, and my chosen solution was creating a custom actions runner image that has docker-credential-gcr preinstalled.

Dockerfile

FROM summerwind/actions-runner:v2.299.1-ubuntu-20.04
ARG CRED_HELPER_VERSION=2.1.6
ARG CRED_HELPER_TARBALL=docker-credential-gcr_linux_amd64-${CRED_HELPER_VERSION}.tar.gz
USER root
RUN wget https://github.com/GoogleCloudPlatform/docker-credential-gcr/releases/download/v${CRED_HELPER_VERSION}/${CRED_HELPER_TARBALL} && \
    mkdir helper && tar -xzf ${CRED_HELPER_TARBALL} -C ./helper && \
    mv ./helper/docker-credential-gcr /usr/bin/ && rm -r helper && rm ${CRED_HELPER_TARBALL}
COPY --chown=runner dockerconf…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@jorob16
Comment options

Comment options

You must be logged in to vote
3 replies
@AlfonsoUceda
Comment options

@SamyDjemai
Comment options

@gr8jen
Comment options

Answer selected by jorob16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants