Skip to content

Docker action uses build instead of pull #25175

Answered by Yanjingzhu
jdbruijn asked this question in Actions
Discussion options

You must be logged in to vote

Hi @jdbruijn , 

I checked wagoid/commitlint-github-action.  In its action.yml , the author specific a docker image in dockerhub under  runs  key. When using this action in a workflow, it will pull the image from dockerhub. 

runs:
  using: 'docker'
  image: 'docker://wagoid/commitlint-github-action:1.6.0'

And in your action.yml , you are using Dockerfile. When using this action in a workflow, it will build the image using the Dockerfile. 

runs:
  using: docker
  image: src/Dockerfile

 If you want to pull image instead of build when using your Docker action , I would recommend you push the image into Dockerhub and then modify your action.yml > runs > image using an image instead of Docker…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants