Compare commits

...

3 commits

Author SHA1 Message Date
e504d89840
ci: use nextcloud 28 image 2024-10-28 16:48:24 +01:00
aaa17c033f
ci: remove git vendor git folder 2024-10-28 16:47:59 +01:00
57eff00efc
ci: explicit exec command 2024-10-28 16:47:03 +01:00

View file

@ -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)