Skip to content

How to pull private actions docker from private registry #698

Answered by peimanja
peimanja asked this question in Questions
Discussion options

You must be logged in to vote

Ended up building our own image and doing something like this

ARG RUNNER_IMAGE_TAG

FROM docker summerwind/actions-runner-dind:${RUNNER_IMAGE_TAG}

ARG ARTIFACTORY_USERNAME
ARG ARTIFACTORY_PASSWORD


RUN mkdir -p ~/.docker
RUN echo "{\"auths\":{\n\
    \"<registry>\":{\"username\":\"${ARTIFACTORY_USERNAME}\" ,\"password\":\"${ARTIFACTORY_PASSWORD}\"}\n\
    }}" > ~/.docker/config.json

Replies: 2 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by peimanja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants