Comments (9)
Hi @adamgins - thanks for the feedback here. Happy to look into this deeper. Can you provide some details about what your Dockerfile
looks like or even just the base image so I can reproduce?
from docker-build-push.
Using a simple "hello world" Dockerfile
I'm not able to replicate this yet:
FROM mcr.microsoft.com/windows/servercore:ltsc2019
RUN dism.exe /online /enable-feature /all /featurename:iis-webserver /NoRestart
RUN echo "Hello World - Dockerfile" > c:\inetpub\wwwroot\index.html
CMD [ "cmd" ]
According to this StackOverflow issue, your issue may be related to the docker login
operation.
from docker-build-push.
Thanks @mr-smithers-excellent
I added you to a private repo we run the docker file in the bundle
directory
Weird that is succeeds with the push the first time to a new docker image and then fails the second time.
from docker-build-push.
@mr-smithers-excellent FYI I did find this long issue docker/hub-feedback#1222
from docker-build-push.
@adamgins - this is helpful. Looking into this more today.
from docker-build-push.
@adamgins - think I found your issue.
Successful Build Image
buzzybuzz/buzzy-main-windows-nano1809:latest
Failed Build Image
buzzybuzz/buzzy-main-windows:nano1809
I'm guessing the name of the Docker repo should be buzzy-main-windows-nano1809
? Does the repo buzzybuzz/buzzy-main-windows
exist?
from docker-build-push.
@mr-smithers-excellent thanks. I think that issue was just an example where we changed the image name to a new name buzzybuzz/buzzy-main-windows-nano1809:latest
and it worked the first time. Both those images existed on docker.io
The weird thing is I got it to work on buzzybuzz/buzzy-main-windows
by deleting the repo and then re-running, it worked both first and second time.
The only other things I changed, was I added the latest
as the tag
directive:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
name: Check out code
# - uses: actions/checkout@v2
# - name: Build image from archive
# run: docker build --build-arg s3key=${{ secrets.AWS_ID }} --build-arg s3scret=${{ secrets.AWS_SECRET }} --build-arg s3path=s3://<path to s3bucket>/<file>.tar.gz -t buzzybuzz:buzz-main-windows -f bundle/Dockerfile .
# - name: Run build-tools build command
- uses: mr-smithers-excellent/docker-build-push@v3
name: Build & push Docker image
with:
image: buzzybuzz/buzzy-main-windows
tag: latest
registry: docker.io
dockerfile: bundle/Dockerfile
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
buildArgs: s3key=${{ secrets.AWS_ID }}, s3scret=${{ secrets.AWS_SECRET }}, s3path=s3:/<path to docker bundle>/<file>.tar.gz
So I'd say it's working, I still don't know what made it work. The critical thing was deleting the current image.
from docker-build-push.
Let me know if the issue creeps up again. I'll be on the lookout for similar problems. Closing this for now. Thanks!
from docker-build-push.
Thanks @mr-smithers-excellent
from docker-build-push.
Related Issues (20)
- Set output warning when running this action HOT 7
- Github action Error: Dockerfile does not exist in location Dockerfile HOT 8
- Build The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. HOT 7
- Docker Push without build HOT 2
- Support for pull_request event
- Support for pull_request event HOT 6
- Output image SHA256 digest(s) HOT 4
- ERROR: failed to solve: Internal: header key "exclude-patterns" contains value with non-printable ASCII characters HOT 3
- Why is my organization's name a secret? HOT 1
- How do I find the correct registry and image name to use? HOT 2
- Any plan to support Azure Container Registries? HOT 4
- Exit Code 1 after pushing latest tag HOT 1
- Is it possible to cache node_modules that were installed in Dockerfile? HOT 1
- "Node.js 16 actions are deprecated" warning HOT 1
- Action fails pipeline if credentials are not supplied HOT 9
- Not working with Artifact Registry HOT 2
- Conditionally Setting `addLatest` does not work for truthy values HOT 1
- Why is there no switch to set whether to push all tags? HOT 4
- Input multiPlatform is set to true, skipping Docker push step HOT 2
- How to push latest tag only upon releases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-build-push.