#Does Dagger work as a deamon? (newbbie CI/CD Question)

1 messages · Page 1 of 1 (latest)

oblique idol
#

Hi I'm just trying to create a CI/CD pipeline that can do the follow:
#1 wait for push action on github
#2 when a action happend create a code test
#3 if everythin is ok build the image
#4 create a new contaner with the image step 3
#5 replace the new container with the old one

Is there any template in github like that?

Thanks you all!

Sergio.

wintry hamlet
#

👋 Hi @oblique idol ! Welcome. 🙂

#

Typically you trigger a Dagger pipeline with your existing CI (or run it locally).
Do you use GitHub Actions from GitHub?

#

Also, which Dagger SDK would you like to use?
Go, Python, Node (Typescript or Javascript)?

oblique idol
#

Hi @wintry hamlet !!! yes I use github actions . I would like to use Node Typescript SDK .

oblique idol
#

thanks

#

Thanks a lot @wintry hamlet !!!

wintry hamlet
oblique idol
#

I'll try hard to make it works !

wintry hamlet
#

To answer your question in the title of the help post, the Dagger SDK will do some magic behind the scenes to ensure you have a Dagger Engine running that it can send API calls to. When you run Dagger locally, you'll use the same Dagger Engine and cache (unless you remove it). When you use Dagger in CI, usually you are using an ephemeral runner instance, so you need to do something else to ensure the Dagger Cache is persisted (we have a product around that). Do you use hosted GitHub Actions runners (provided by GitHub) or self-hosted?

oblique idol
#

I'm new in this world. Dagger sounds amazing!

wintry hamlet
oblique idol
#

Well I view a post from a youtuber peladonerd She post about dagger in this link https://www.youtube.com/watch?v=lGl1UlcODLQ&t=154s He said he maybe could interviewed Solomon Hykes so I'm waiting for that

Hoy probamos que los que para muchos es el futuro del CI/CD. Dagger es una tecnología que nos permite codear nuestro pipeline completo de CI/CD usando lenguajes de programación.

En este caso, vamos a probar Dagger con el SDK de Python: https://docs.dagger.io/sdk/python/628797/get-started

Usá mi link para crearte una cuenta de Cast.AI y ahorrar...

▶ Play video
wintry hamlet
#

Since your Dagger pipeline will run the same locally and in CI, I'd suggest writing it in Typescript first and running it locally, then it's really easy to drop into GitHub Actions.

oblique idol
#

Got it! I will focus on that

wintry hamlet
#

Feel free to ask any questions or share anything that doesn't make sense along the way 🙏 Then we can make the experience better for everyone!

oblique idol
#

Wow thank you ! You helped a lot !

toxic dirge