Closed Yucked closed 9 months ago
The error looks legit looking at your Dockerfile: https://github.com/Yucked/Grimoire/blob/79f25660b52231ff0227c08d7f67068bab46c01e/Dockerfile#L4
FROM mcr.microsoft.com/dotnet/sdk:8.0
RUN apk add --no-cache curl unzip
FROM build
RUN curl -OJL https://github.com/Yucked/Grimoire/archive/refs/heads/main.zip && \
unzip '*.zip' && \
mkdir app && mv Grimoire-main/* app/ && \
rm *.zip && rm -rf Grimoire-main
WORKDIR app
RUN dotnet restore && \
dotnet publish -c Release -o out
WORKDIR out
ENTRYPOINT ["dotnet", "Grimoire.Web.dll"]
build
image does not exist. I also repro locally with a simple docker build .
Maybe you just need to remove the line FROM build
, I'm not sure.
Closing as it does not seem to be an issue with the action but your Dockerfile.
how did you solve it @Yucked ?
@aryangosling I overlooked the 2nd "FROM build" line 4.
Contributing guidelines
I've found a bug, and:
Description
Error when pushing to ghcr.io, workflow is as follow:
Already tried the suggestions in #160
Expected behaviour
Should be able to build the image
Actual behaviour
Fails to build the image and push to github registry
Repository URL
https://github.com/Yucked/Grimoire
Workflow run URL
https://github.com/Yucked/Grimoire/actions/runs/6486766699/job/17615641628
YAML workflow
Workflow logs
No response
BuildKit logs
No response
Additional info
No response