Cannot build netcore 6.0 in a job

Hello

 

I'm trying to create a job to build and deploy a Blazor webassembly application to an Azure storage following https://dharm-s-negi.medium.com/ci-cd-for-reactjs-app-using-space-devops-to-azure-ab9d07112716 

My .space.kts looks like:

 

job("Deploy blaozor ui") {
    startOn{
        gitPush{
            branchFilter{
                +"refs/heads/main"
            }
        }
    }
    
    container(image = "mcr.microsoft.com/dotnet/core/sdk:6.0"){
        shellScript {
            content = """
                echo Run build...
                dotnet build ./Boutix.Blazor/Boutix.Blazor.csproj -c Release
                echo Run publish
                dotnet publish ./Boutix.Blazor/Boutix.Blazor.csproj -c Release
            """
        }
    }
}

The job is failing with the following message:

 

Failed to start: Compose up finished with exit code: 1. Output: --no-ansi option is deprecated and will be removed in future versions. Use `--ansi never` instead. Creating network "6t5cg0mlevf-tubxvndul7_24d30Z180JVK-26HOQs14dAEY-6t5cg0MLEvf-network" with driver "bridge" Pulling 24d30Z180JVK-26HOQs14dAEY-6t5cg0MLEvf (mcr.microsoft.com/dotnet/core/sdk:6.0)... manifest for mcr.microsoft.com/dotnet/core/sdk:6.0 not found: manifest unknown: manifest tagged by "6.0" is not found.

It's a weird issue. I can build and run the application in a docker container and nginx...

 

Any help?

thanks

0
2 comments

Dpinart are you sure that you're using the correct image reference? To check that try pulling this image on your local machine.

0

My god!!

Im so silly...

0

Please sign in to leave a comment.