This commit is contained in:
parent
2f1757dc66
commit
80f414e393
15
demo.go
15
demo.go
@ -122,6 +122,21 @@ func buildstaging(ctx context.Context) error {
|
||||
}
|
||||
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...")
|
||||
url_ := os.Getenv("SAV_DEVELOPMENT")
|
||||
chatMatriz := sendNotification(url_, dataDevelopment)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user