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?
#Push a image to Docker Hub
1 messages · Page 1 of 1 (latest)
When stage deploy is separated from build, stage deploy doesn't seem to run my Dockerfile.
Build :
which version of dagger is this? this looks a lot like buildkit's plain progress output, not dagger's
The latest version (v.0.11.9)
Dagger actions take place before the actions shown in the screenshot.
do you have a link to your workflow?
it appears to be private
I made the change to make it public
Did you find anything unusual on the workflow ?
yeah, so this isn't exactly how we'd recommend using dagger - essentially, by doing it like this https://github.com/gregorydefretin/dagger/blob/GDN/deploy.py#L13
you're just using dagger run to execute this script - there's no actual dagger logic involved here
GitHub
POC Dagger.io. Contribute to gregorydefretin/dagger development by creating an account on GitHub.
you probably want something more like this: https://docs.dagger.io/cookbook/#build-image-from-dockerfile
to build the dockerfile
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)
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