Compare commits
3 commits
8ed2bcb2be
...
e504d89840
Author | SHA1 | Date | |
---|---|---|---|
e504d89840 | |||
aaa17c033f | |||
57eff00efc |
1 changed files with 4 additions and 3 deletions
|
@ -40,10 +40,11 @@ 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"}).
|
||||
WithExec([]string{"rm", "-rf", "vendor/audriga/scim-server-php/.git"}).
|
||||
Directory("vendor")
|
||||
|
||||
output := client.Container().From("docker.io/nextcloud:27").
|
||||
output := client.Container().From("docker.io/nextcloud:28").
|
||||
WithWorkdir("/scimserviceprovider").
|
||||
WithDirectory("vendor", vendor).
|
||||
WithDirectory(".", client.Host().Directory(".", dagger.HostDirectoryOpts{
|
||||
|
@ -60,7 +61,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)
|
||||
|
|
Loading…
Reference in a new issue