ci: explicit exec command
This commit is contained in:
parent
8ed2bcb2be
commit
57eff00efc
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ func main() {
|
||||||
vendor := client.Container().From("docker.io/composer:2.6").
|
vendor := client.Container().From("docker.io/composer:2.6").
|
||||||
WithFile("composer.json", client.Host().File("composer.json")).
|
WithFile("composer.json", client.Host().File("composer.json")).
|
||||||
WithFile("composer.lock", client.Host().File("composer.lock")).
|
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")
|
Directory("vendor")
|
||||||
|
|
||||||
output := client.Container().From("docker.io/nextcloud:27").
|
output := client.Container().From("docker.io/nextcloud:27").
|
||||||
|
@ -60,7 +60,7 @@ func main() {
|
||||||
_, err = client.Container().From("docker.io/minio/mc").
|
_, err = client.Container().From("docker.io/minio/mc").
|
||||||
WithSecretVariable("MC_HOST_repo", s3Secret).
|
WithSecretVariable("MC_HOST_repo", s3Secret).
|
||||||
WithDirectory("/output", output).
|
WithDirectory("/output", output).
|
||||||
WithExec([]string{"cp", "-r", "/output/", "repo/artifacts/"}).
|
WithExec([]string{"mc", "cp", "-r", "/output/", "repo/artifacts/"}).
|
||||||
Sync(ctx)
|
Sync(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Loading…
Reference in a new issue