Option to not do docker pull?
See original GitHub issueThank you 🙇♀ for wanting to create a feature in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.
- If you have found a security issue please submit it here
- If you have questions or issues with the service, writing workflows or actions, then please visit the GitHub Community Forum’s Actions Board
- If you are having an issue or question about GitHub Actions then please contact customer support
If you have a feature request that is relevant to this repository, the runner, then please include the information below:
Describe the enhancement If I have a local runner and a locally maintained docker image i.e. not stored on a repository, I would like to avoid the “docker pull” step, which then fails.
Code Snippet
name: Self Hosted Tests
on: [push]
jobs:
integration_tests:
runs-on: self-hosted
container:
image: python3.6:latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: What java version do we have
run: java -version
Additional information The image python3.6:latest is in my self-hosted runner’s docker images. It doesn’t exist in DockerHub or any other repository, and I don’t want it to, because it should only ever be run on my self-hosted runner.
NOTE: if the feature request has been agreed upon then the assignee will create an ADR. See docs/adrs/README.md
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:15
Top GitHub Comments
It would be really helpful if these options were supported:
This allows baking docker images into AMIs, and use
if-not-exists
so it only downloads when necessary.docker does not pull the image again if it exists already:
But you have to publish the image to a registry so that the pull ackowledges that the image has not changed. To avoid using a remote registry, you can start a local registry in the runner
docker run registry
, and publish the image to this registry. Then, in the workflow job, write this: