#Push a image to Docker Hub

1 messages · Page 1 of 1 (latest)

fickle meadow
#

Hello everyone, I'm having a problem with my Github Action workflow. I can't push an image to Docker Hub when I separate my stages (build and deploy).
To make the link between the build and deploy stages, I use an artifact (which seems to work).
On the other hand, I have no problem when I combine my two stages into one.
How can I solve this problem?

#

When stage deploy is separated from build, stage deploy doesn't seem to run my Dockerfile.

#

Build :

late venture
#

which version of dagger is this? this looks a lot like buildkit's plain progress output, not dagger's

fickle meadow
#

The latest version (v.0.11.9)

#

Dagger actions take place before the actions shown in the screenshot.

late venture
#

do you have a link to your workflow?

late venture
#

it appears to be private

fickle meadow
#

I made the change to make it public

fickle meadow
#

Did you find anything unusual on the workflow ?

late venture
#

to build the dockerfile

fickle meadow
#

Precisely, I run the deploy.py script via a dagger run command

#

The link you sent me is simply the contents of the script (deploy.py)

late venture
#

Right, but all that script does is run a docker build command - you need to use the dagger SDK to actually be able to connect to and use the dagger engine

#

I'd recommend looking through the quick start to get an idea https://docs.dagger.io/quickstart/
Or just glancing at the cookbook link I said, it's got instructions for building a docker file using the dagger SDK there

Welcome to Dagger, a programmable tool that lets you replace your software project's artisanal scripts with a modern API and cross-language scripting engine.