ci: explicit exec command

This commit is contained in:
Hugo Renard 2024-10-28 16:47:03 +01:00
parent 8ed2bcb2be
commit 57eff00efc
Signed by: hougo
GPG key ID: 3A285FD470209C59

View file

@ -40,7 +40,7 @@ func main() {
vendor := client.Container().From("docker.io/composer:2.6").
WithFile("composer.json", client.Host().File("composer.json")).
WithFile("composer.lock", client.Host().File("composer.lock")).
WithExec([]string{"i", "--no-dev", "--ignore-platform-reqs"}).
WithExec([]string{"composer", "i", "--no-dev", "--ignore-platform-reqs"}).
Directory("vendor")
output := client.Container().From("docker.io/nextcloud:27").
@ -60,7 +60,7 @@ func main() {
_, err = client.Container().From("docker.io/minio/mc").
WithSecretVariable("MC_HOST_repo", s3Secret).
WithDirectory("/output", output).
WithExec([]string{"cp", "-r", "/output/", "repo/artifacts/"}).
WithExec([]string{"mc", "cp", "-r", "/output/", "repo/artifacts/"}).
Sync(ctx)
if err != nil {
panic(err)