Closed shakib609 closed 3 years ago
Thanks. I've updated the README.
Question I am using the example and it fails with: docker: Error response from daemon: pull access denied for test-image, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
Am I missing something?
@pmoosh: you likely need to specify load: true
for build-push-action
. For example:
- name: Build Docker image
uses: docker/build-push-action@v2
with:
tags: <your-tag>
load: true
push: false
I discovered this when I was trying to debug the same issue you were having. Running docker images
didn't list the tagged image. I happened to decide to read the documentation for docker buildx build
and found the following:
Load the single-platform build result to docker images (
--load
)Shorthand for
--output=type=docker
. Will automatically load the single-platform build result todocker images
.
In documentation for build-push-action
, the default for load
is false
.
@addnab: maybe the example in the README could be updated?
#### run an image built by a previous step
```yaml
– uses: docker/build-push-action@v2
with:
tags: test-image:latest
push: false
+ load: true
– uses: addnab/docker-run-action@v3
with:
image: test-image:latest
run: echo "hello world"
This part of the documentation does not work as expected anymore.
docker/build-push-action
gives the below warning while running action.