Actualizar demo.go
Some checks failed
Deploy demo / Deploy (push) Failing after 2s

This commit is contained in:
marly.guerrero 2025-11-25 16:16:57 +00:00
parent 2f1757dc66
commit 80f414e393

15
demo.go
View File

@ -121,6 +121,21 @@ func buildstaging(ctx context.Context) error {
os.Exit(1) os.Exit(1)
} }
fmt.Printf("Estado: %s\n", result) fmt.Printf("Estado: %s\n", result)
image := hostDirectory.
DockerBuild(dagger.DirectoryDockerBuildOpts{
Dockerfile: "Dockerfile",
}).
WithWorkdir("/var/www/app").
WithExec([]string{"composer", "install"}).
WithEnvVariable("APP_VERSION", appVersion)
publishedVersion, err := image.
WithRegistryAuth(
os.Getenv("SAV_OST"),
os.Getenv("SAV_SER"),
secret).
Publish(ctx, os.Getenv("SAV_HOST")+"savnet:"+version)
fmt.Println("Enviando notificación a Rocket.Chat...") fmt.Println("Enviando notificación a Rocket.Chat...")
url_ := os.Getenv("SAV_DEVELOPMENT") url_ := os.Getenv("SAV_DEVELOPMENT")