This commit is contained in:
parent
2f1757dc66
commit
80f414e393
15
demo.go
15
demo.go
@ -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")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user