![](https://seccdn.libravatar.org/avatar/128a7b98d536a9cf9b4d4d5a90d63475.jpg?s=120&d=mm&r=g)
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package dagger for openSUSE:Factory checked in at 2022-06-29 16:01:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dagger (Old) and /work/SRC/openSUSE:Factory/.dagger.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "dagger" Wed Jun 29 16:01:40 2022 rev:15 rq:985667 version:0.2.21 Changes: -------- --- /work/SRC/openSUSE:Factory/dagger/dagger.changes 2022-06-23 10:24:53.347780329 +0200 +++ /work/SRC/openSUSE:Factory/.dagger.new.1548/dagger.changes 2022-06-29 16:02:53.748745503 +0200 @@ -1,0 +2,34 @@ +Tue Jun 28 18:14:48 UTC 2022 - kastl@b1-systems.de + +- Update to version 0.2.21: + * universe: php: composer: Removed string as argument for repository + * universe: php: composer: Allow container to accept a docker.#image + * universe: php: composer: Use env directly and restructure output to be one entry + * chore: Back these files to the status that they have in the main branch + * Fixes a somekind of markdown issue + * Change to follow the style in the original guide + * Fixes a markdown issue + * Avoid to make more complex the build command adding the cache stuff + * build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0 (#2699) + * fix: Correct case for private definition per style (#2691) + * Add a possible configuration to use dagger in TravisCi + * [Docs] Categories UI improvement + * build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.4 (#2698) + * build(deps): bump sass from 1.52.3 to 1.53.0 in /website + * build(deps-dev): bump cypress from 10.1.0 to 10.2.0 in /website + * build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0 (#2699) + * fix: Correct case for private definition per style (#2691) + * [Docs] Fix hyperlinks rendering inside admonitions + * fix: visual fix + * fix: redirect better visually + * fix: Correct docs routes + * print Dagger Cloud URL when starting plan + * Effectively use embedding + * enforce configuration mount + * revert useless image configurations + * universe: php: composer: Formatted code + * universe: php: composer: Make image and repository configurable + * universe: php: composer: Pulled apart image and container to seperate file and made package more extensible + * feat: add support for aws sso credentials and container credentials relative uri + +------------------------------------------------------------------- Old: ---- dagger-0.2.20.tar.gz New: ---- dagger-0.2.21.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dagger.spec ++++++ --- /var/tmp/diff_new_pack.cOzp6J/_old 2022-06-29 16:02:54.252746174 +0200 +++ /var/tmp/diff_new_pack.cOzp6J/_new 2022-06-29 16:02:54.256746179 +0200 @@ -19,7 +19,7 @@ %define __arch_install_post export NO_BRP_STRIP_DEBUG=true Name: dagger -Version: 0.2.20 +Version: 0.2.21 Release: 0 Summary: A portable devkit for CI/CD pipelines License: GPL-3.0-only ++++++ _service ++++++ --- /var/tmp/diff_new_pack.cOzp6J/_old 2022-06-29 16:02:54.288746221 +0200 +++ /var/tmp/diff_new_pack.cOzp6J/_new 2022-06-29 16:02:54.292746226 +0200 @@ -3,7 +3,7 @@ <param name="url">https://github.com/dagger/dagger</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">v0.2.20</param> + <param name="revision">v0.2.21</param> <param name="versionformat">@PARENT_TAG@</param> <param name="changesgenerate">enable</param> <param name="versionrewrite-pattern">v(.*)</param> @@ -16,7 +16,7 @@ <param name="compression">gz</param> </service> <service name="go_modules" mode="disabled"> - <param name="archive">dagger-0.2.20.tar.gz</param> + <param name="archive">dagger-0.2.21.tar.gz</param> </service> </services> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.cOzp6J/_old 2022-06-29 16:02:54.316746258 +0200 +++ /var/tmp/diff_new_pack.cOzp6J/_new 2022-06-29 16:02:54.316746258 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/dagger/dagger</param> - <param name="changesrevision">64c6a6a23c2edba90cb2649b29ddfb16c1c21a98</param></service></servicedata> + <param name="changesrevision">108888b356de33d27f1a71a146b56f66ba84e8b6</param></service></servicedata> (No newline at EOF) ++++++ dagger-0.2.20.tar.gz -> dagger-0.2.21.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/docs/getting-started/1201-ci-environment.md new/dagger-0.2.21/docs/getting-started/1201-ci-environment.md --- old/dagger-0.2.20/docs/getting-started/1201-ci-environment.md 2022-06-21 18:40:20.000000000 +0200 +++ new/dagger-0.2.21/docs/getting-started/1201-ci-environment.md 2022-06-28 14:02:01.000000000 +0200 @@ -20,6 +20,7 @@ groupId="ci-environment" values={[ {label: 'GitHub Actions', value: 'github-actions'}, +{label: 'TravisCI', value: 'travisci'}, {label: 'CircleCI', value: 'circleci'}, {label: 'GitLab', value: 'gitlab'}, {label: 'Jenkins', value: 'jenkins'}, @@ -33,6 +34,48 @@ ``` </TabItem> + +<TabItem value="travisci"> + +```yaml +--- +os: linux +arch: amd64 +dist: bionic +language: minimal + +env: + global: + - DAGGER_VERSION: 0.2.19 + - DAGGER_LOG_FORMAT: plain + - DAGGER_CACHE_PATH: .dagger-cache + +services: + - docker + +install: + - | + # Installing dagger + cd /usr/local + curl -L https://dl.dagger.io/dagger/install.sh | sudo sh + cd - + +stages: + - name: build + if: type IN (push, pull_request) + +jobs: + include: + - stage: build + env: + - TASK: "dagger do build" + before_script: + - dagger project update + script: + - dagger do build +``` + +</TabItem> <TabItem value="circleci"> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/docs/getting-started/index.md new/dagger-0.2.21/docs/getting-started/index.md --- old/dagger-0.2.20/docs/getting-started/index.md 2022-06-21 18:40:20.000000000 +0200 +++ new/dagger-0.2.21/docs/getting-started/index.md 2022-06-28 14:02:01.000000000 +0200 @@ -1,9 +1,9 @@ --- -slug: / +slug: /getting-started displayed_sidebar: '0.2' --- -# Dagger Documentation +# Build & run locally...then in CI ```mdx-code-block import {Redirect} from '@docusaurus/router'; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/docs/index.md new/dagger-0.2.21/docs/index.md --- old/dagger-0.2.20/docs/index.md 1970-01-01 01:00:00.000000000 +0100 +++ new/dagger-0.2.21/docs/index.md 2022-06-28 14:02:01.000000000 +0200 @@ -0,0 +1,14 @@ +--- +slug: / +displayed_sidebar: '0.2' +--- + +# Build & run locally...then in CI + +```mdx-code-block +import {Redirect} from '@docusaurus/router'; + +const Home = () => { + return <Redirect to="/1200/local-dev" />; +}; +``` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/go.mod new/dagger-0.2.21/go.mod --- old/dagger-0.2.20/go.mod 2022-06-21 18:40:20.000000000 +0200 +++ new/dagger-0.2.21/go.mod 2022-06-28 14:02:01.000000000 +0200 @@ -27,10 +27,10 @@ github.com/rs/zerolog v1.27.0 github.com/sergi/go-diff v1.2.0 github.com/sirupsen/logrus v1.8.1 - github.com/spf13/cobra v1.4.0 + github.com/spf13/cobra v1.5.0 github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.12.0 - github.com/stretchr/testify v1.7.2 + github.com/stretchr/testify v1.7.4 github.com/tonistiigi/fsutil v0.0.0-20220315205639-9ed612626da3 github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea github.com/tonistiigi/vt100 v0.0.0-20210615222946-8066bb97264f diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/go.sum new/dagger-0.2.21/go.sum --- old/dagger-0.2.20/go.sum 2022-06-21 18:40:20.000000000 +0200 +++ new/dagger-0.2.21/go.sum 2022-06-28 14:02:01.000000000 +0200 @@ -456,7 +456,7 @@ github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= @@ -1357,8 +1357,8 @@ github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= -github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q= -github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= +github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU= +github.com/spf13/cobra v1.5.0/go.mod h1:dWXEIy2H428czQCjInthrTRUg7yKbok+2Qi/yBIJoUM= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= @@ -1381,8 +1381,9 @@ github.com/stretchr/objx v0.0.0-20180129172003-8a3f7159479f/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48= github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= +github.com/stretchr/objx v0.4.0 h1:M2gUjqZET1qApGOWNSnZ49BAIMX4F/1plDv3+l31EJ4= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/testify v0.0.0-20151208002404-e3a8ff8ce365/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v0.0.0-20180303142811-b89eecf5ca5d/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= @@ -1392,8 +1393,8 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s= -github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= +github.com/stretchr/testify v1.7.4 h1:wZRexSlwd7ZXfKINDLsO4r7WBt3gTKONc6K/VesHvHM= +github.com/stretchr/testify v1.7.4/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/subosito/gotenv v1.3.0 h1:mjC+YW8QpAdXibNi+vNWgzmgBH4+5l5dCXv8cNysBLI= github.com/subosito/gotenv v1.3.0/go.mod h1:YzJjq/33h7nrwdY+iHMhEOEEbW0ovIz0tB6t6PwAXzs= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/pkg/universe.dagger.io/alpha/kubernetes/helm/install.cue new/dagger-0.2.21/pkg/universe.dagger.io/alpha/kubernetes/helm/install.cue --- old/dagger-0.2.20/pkg/universe.dagger.io/alpha/kubernetes/helm/install.cue 2022-06-21 18:40:20.000000000 +0200 +++ new/dagger-0.2.21/pkg/universe.dagger.io/alpha/kubernetes/helm/install.cue 2022-06-28 14:02:01.000000000 +0200 @@ -5,13 +5,13 @@ "universe.dagger.io/docker" ) -_#DefaultNamespace: "default" +_#defaultNamespace: "default" #Install: { // Name of your release name: string | *"" kubeconfig: dagger.#Secret - namespace: *_#DefaultNamespace | string + namespace: *_#defaultNamespace | string source: *"repository" | "URL" { source: "repository" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/pkg/universe.dagger.io/alpha/php/composer/composer.cue new/dagger-0.2.21/pkg/universe.dagger.io/alpha/php/composer/composer.cue --- old/dagger-0.2.20/pkg/universe.dagger.io/alpha/php/composer/composer.cue 2022-06-21 18:40:20.000000000 +0200 +++ new/dagger-0.2.21/pkg/universe.dagger.io/alpha/php/composer/composer.cue 2022-06-28 14:02:01.000000000 +0200 @@ -1,77 +1,39 @@ -// Composer is a package manager for PHP applications package composer import ( "dagger.io/dagger" - "dagger.io/dagger/core" - - "universe.dagger.io/alpine" - "universe.dagger.io/bash" - "universe.dagger.io/docker" ) -// Run a composer install command +// Composer command #Run: { - // Custom name for this command. - // Assign an app-specific name if there are multiple apps in the same plan. - name: string | *"" - - // App source code + // Source code source: dagger.#FS - // Optional arguments for the script - args: [...string] + env: [string]: string - _args: args + // Arguments for composer + args: [...string] - _container: #Build: alpine.#Build & { - packages: { - bash: {} - composer: {} - php8: {} + container: #Container & { + "source": source + "env": env + command: { + name: "composer" + "args": args + } + export: { + directories: "/output/vendor": _ + files: { + "/output/composer.json": _ + "/output/composer.lock": _ + } } } - _run: docker.#Build & { - steps: [ - _container.#Build, - - docker.#Copy & { - dest: "/src" - contents: source - }, - - bash.#Run & { - input: _container.#Build.output - workdir: "/src" - args: _args - - mounts: "composer cache": { - dest: "/cache/composer" - contents: core.#CacheDir & { - id: "universe.dagger.io/composer.#Run \(name)" - } - } - - script: { - _load: core.#Source & { - path: "." - include: ["*.sh"] - } - directory: _load.output - filename: "composer.sh" - } - - env: COMPOSER_CACHE_DIR: "/cache/composer" - }, - ] - } - - // The final contents of the package after run - _output: core.#Subdir & { - input: _run.output.rootfs - path: "/src" + // Export packages and composer files + output: { + vendor: container.export.directories."/output/vendor" + json: container.export.files."/output/composer.json" + lock: container.export.files."/output/composer.lock" } - - output: _output.output } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/pkg/universe.dagger.io/alpha/php/composer/composer.sh new/dagger-0.2.21/pkg/universe.dagger.io/alpha/php/composer/composer.sh --- old/dagger-0.2.20/pkg/universe.dagger.io/alpha/php/composer/composer.sh 2022-06-21 18:40:20.000000000 +0200 +++ new/dagger-0.2.21/pkg/universe.dagger.io/alpha/php/composer/composer.sh 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -#!/bin/bash -composer install "$@" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/pkg/universe.dagger.io/alpha/php/composer/container.cue new/dagger-0.2.21/pkg/universe.dagger.io/alpha/php/composer/container.cue --- old/dagger-0.2.20/pkg/universe.dagger.io/alpha/php/composer/container.cue 1970-01-01 01:00:00.000000000 +0100 +++ new/dagger-0.2.21/pkg/universe.dagger.io/alpha/php/composer/container.cue 2022-06-28 14:02:01.000000000 +0200 @@ -0,0 +1,43 @@ +// Composer is a package manager for PHP applications +package composer + +import ( + "dagger.io/dagger" + "dagger.io/dagger/core" + + "universe.dagger.io/docker" +) + +// Run a composer install command +#Container: { + // Container name + name: *"php_composer" | string + + // Source code + source: dagger.#FS + + // Use composer image + _image: #Image + + _sourcePath: "/output" + _composerCachePath: "/cache/composer" + + _copy: docker.#Copy & { + input: _image.output | docker.#Image + dest: _sourcePath + contents: source + include: ["composer.json", "composer.lock", "vendor*"] + } + + docker.#Run & { + input: _copy.output + workdir: _sourcePath + mounts: "composer cache": { + contents: core.#CacheDir & { + id: "\(name)_cache" + } + dest: _composerCachePath + } + env: COMPOSER_CACHE_DIR: _composerCachePath + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/pkg/universe.dagger.io/alpha/php/composer/image.cue new/dagger-0.2.21/pkg/universe.dagger.io/alpha/php/composer/image.cue --- old/dagger-0.2.20/pkg/universe.dagger.io/alpha/php/composer/image.cue 1970-01-01 01:00:00.000000000 +0100 +++ new/dagger-0.2.21/pkg/universe.dagger.io/alpha/php/composer/image.cue 2022-06-28 14:02:01.000000000 +0200 @@ -0,0 +1,44 @@ +package composer + +import ( + "universe.dagger.io/docker" +) + +// Composer image default name +_#DefaultName: "composer" + +// Composer image default repository +_#DefaultRepository: "index.docker.io" + +// Co image default version +_#DefaultVersion: "latest" + +#Image: { + name: *_#DefaultName | string + repository: *_#DefaultRepository + version: *_#DefaultVersion | string + + packages: [pkgName=string]: version: string | *"" + + packages: git: _ + + docker.#Build & { + steps: [ + docker.#Pull & { + source: "\(repository)/\(name):\(version)" + }, + for pkgName, pkg in packages { + docker.#Run & { + command: { + name: "apk" + args: ["add", "\(pkgName)\(pkg.version)"] + flags: { + "-U": true + "--no-cache": true + } + } + } + }, + ] + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/pkg/universe.dagger.io/aws/aws.cue new/dagger-0.2.21/pkg/universe.dagger.io/aws/aws.cue --- old/dagger-0.2.20/pkg/universe.dagger.io/aws/aws.cue 2022-06-21 18:40:20.000000000 +0200 +++ new/dagger-0.2.21/pkg/universe.dagger.io/aws/aws.cue 2022-06-28 14:02:01.000000000 +0200 @@ -58,6 +58,12 @@ // AWS session token (provided with temporary credentials) sessionToken?: dagger.#Secret + + // AWS SSO profile + profile?: string + + // AWS Container credentials relative uri (used to automatically retrieve credentials from within AWS) + containerCredentialsRelativeUri?: dagger.#Secret } // Region provides a schema to validate acceptable region value. @@ -71,6 +77,9 @@ // configFile provides access to a config file, typically found in ~/.aws/config configFile?: dagger.#FS + // configFolder provides access to the aws config folder, typically found in ~/.aws + configFolder?: dagger.#FS + // credentials provides long or short-term credentials credentials: #Credentials @@ -90,14 +99,31 @@ if credentials.sessionToken != _|_ { AWS_SESSION_TOKEN: credentials.sessionToken } + + if credentials.profile != _|_ { + AWS_PROFILE: credentials.profile + } + + if credentials.containerCredentialsRelativeUri != _|_ { + AWS_CONTAINER_CREDENTIALS_RELATIVE_URI: credentials.containerCredentialsRelativeUri + } } - if configFile != _|_ { - mounts: aws: { + if configFile != _|_ && configFolder == _|_ { + mounts: awsConfigFile: { contents: configFile dest: "/aws" ro: true } + env: AWS_CONFIG_FILE: "/aws/config" + } + + if configFolder != _|_ { + mounts: awsConfigFolder: { + contents: configFolder + dest: "/aws" + ro: true + } env: AWS_CONFIG_FILE: "/aws/config" } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/telemetry/telemetry.go new/dagger-0.2.21/telemetry/telemetry.go --- old/dagger-0.2.20/telemetry/telemetry.go 2022-06-21 18:40:20.000000000 +0200 +++ new/dagger-0.2.21/telemetry/telemetry.go 2022-06-28 14:02:01.000000000 +0200 @@ -89,6 +89,10 @@ e.Engine.ID = t.engineID e.Run.ID = t.runID + if _, ok := props.(event.RunStarted); ok && t.enable { + fmt.Printf("\nDagger Cloud URL: https://dagger.cloud/runs/%s\n\n", e.Run.ID) + } + if err := e.Validate(); err != nil { panic(err) } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/website/package.json new/dagger-0.2.21/website/package.json --- old/dagger-0.2.20/website/package.json 2022-06-21 18:40:20.000000000 +0200 +++ new/dagger-0.2.21/website/package.json 2022-06-28 14:02:01.000000000 +0200 @@ -31,7 +31,7 @@ "react-dom": "^17.0.1", "react-social-login-buttons": "^3.6.0", "remark-code-import": "^0.4.0", - "sass": "^1.52.3", + "sass": "^1.53.0", "url-loader": "^4.1.1" }, "browserslist": { @@ -48,7 +48,7 @@ }, "devDependencies": { "concurrently": "^7.2.2", - "cypress": "10.1.0", + "cypress": "10.2.0", "cypress-localstorage-commands": "^2.1.0", "start-server-and-test": "^1.13.1" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/website/src/css/custom.scss new/dagger-0.2.21/website/src/css/custom.scss --- old/dagger-0.2.20/website/src/css/custom.scss 2022-06-21 18:40:20.000000000 +0200 +++ new/dagger-0.2.21/website/src/css/custom.scss 2022-06-28 14:02:01.000000000 +0200 @@ -130,6 +130,14 @@ --ifm-h3-vertical-rhythm-top: 2; } + .admonition { + a:not(.card) { + code { + color: inherit; + } + } + } + a:not(.card) { font-weight: bold; text-decoration: underline; @@ -137,15 +145,11 @@ html[data-theme="dark"] & { color: var(--ifm-color-primary-light); - - code { - display: inline-block; - // https://stackoverflow.com/questions/25762427/remove-underline-only-from-anch... - } } code { - color: var(--ifm-code-color); + display: inline-block !important; + color: var(--ifm-color-primary-light); } &:hover { @@ -432,6 +436,14 @@ padding: 3rem 0.5rem 0.5rem !important; } +.menu > .menu__list > .menu__list-item { + padding-bottom: 1rem; +} + +.menu__link { + font-weight: normal; +} + .menu__link.button { width: 190px; margin: auto; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/website/src/theme/DocCard/index.d.ts new/dagger-0.2.21/website/src/theme/DocCard/index.d.ts --- old/dagger-0.2.20/website/src/theme/DocCard/index.d.ts 1970-01-01 01:00:00.000000000 +0100 +++ new/dagger-0.2.21/website/src/theme/DocCard/index.d.ts 2022-06-28 14:02:01.000000000 +0200 @@ -0,0 +1,3 @@ +/// <reference types="react" /> +import type { Props } from '@theme/DocCard'; +export default function DocCard({ item }: Props): JSX.Element; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/website/src/theme/DocCard/index.js new/dagger-0.2.21/website/src/theme/DocCard/index.js --- old/dagger-0.2.20/website/src/theme/DocCard/index.js 1970-01-01 01:00:00.000000000 +0100 +++ new/dagger-0.2.21/website/src/theme/DocCard/index.js 2022-06-28 14:02:01.000000000 +0200 @@ -0,0 +1,77 @@ +import React from "react"; +import clsx from "clsx"; +import Link from "@docusaurus/Link"; +import {findFirstCategoryLink, useDocById} from "@docusaurus/theme-common"; +import isInternalUrl from "@docusaurus/isInternalUrl"; +import {translate} from "@docusaurus/Translate"; +import styles from "./styles.module.css"; +function CardContainer({href, children}) { + return ( + <Link + href={href} + className={clsx("card margin--sm padding--sm", styles.cardContainer)}> + {children} + </Link> + ); +} +function CardLayout({href, icon, title, description}) { + return ( + <CardContainer href={href}> + <h2 className={clsx("text--truncate", styles.cardTitle)} title={title}> + {icon} {title} + </h2> + {description && ( + <p + className={clsx("text--truncate", styles.cardDescription)} + title={description}> + {description} + </p> + )} + </CardContainer> + ); +} +function CardCategory({item}) { + const href = findFirstCategoryLink(item); + // Unexpected: categories that don't have a link have been filtered upfront + if (!href) { + return null; + } + return ( + <CardLayout + href={href} + icon="�������" + title={item.label} + description={translate( + { + message: "{count} items", + id: "theme.docs.DocCard.categoryDescription", + description: + "The default description for a category card in the generated index about how many items this category includes", + }, + {count: item.items.length}, + )} + /> + ); +} +function CardLink({item}) { + const icon = isInternalUrl(item.href) ? "�������" : "����"; + const doc = useDocById(item.docId ?? undefined); + return ( + <CardLayout + href={item.href} + icon={icon} + title={item.label} + description={doc?.description} + /> + ); +} +export default function DocCard({item}) { + switch (item.type) { + case "link": + return <CardLink item={item} />; + case "category": + return <CardCategory item={item} />; + default: + throw new Error(`unknown item type ${JSON.stringify(item)}`); + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/website/src/theme/DocCard/styles.module.css new/dagger-0.2.21/website/src/theme/DocCard/styles.module.css --- old/dagger-0.2.20/website/src/theme/DocCard/styles.module.css 1970-01-01 01:00:00.000000000 +0100 +++ new/dagger-0.2.21/website/src/theme/DocCard/styles.module.css 2022-06-28 14:02:01.000000000 +0200 @@ -0,0 +1,43 @@ +.cardContainer { + --ifm-link-color: var(--ifm-color-emphasis-900); + --ifm-link-hover-color: var(--ifm-color-emphasis-700); + --ifm-link-hover-decoration: none; + + box-shadow: none; + border: none; + transition: all var(--ifm-transition-fast) ease; + transition-property: border, box-shadow, color, background-color; + background-color: transparent; +} + + +html[data-theme="dark"] .cardContainer:hover, +html[data-theme="dark"] .cardContainer:hover .cardTitle +{ + color: var(--ifm-color-emphasis-600); +} + +/* SEE HOW TO IMPLEMENT WITH DARK THEME*/ + +.cardContainer *:last-child { + margin-bottom: 0; +} + +.cardTitle { + transition: all var(--ifm-transition-fast) ease; + transition-property: border, box-shadow, color, background-color; + font-size: 1.5rem; + margin-bottom: 0.2rem; +} + +.cardDescription { + margin-left: 2rem; + font-size: 1rem; + white-space: inherit; + + /* clamp */ + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/website/src/theme/DocCardList/index.d.ts new/dagger-0.2.21/website/src/theme/DocCardList/index.d.ts --- old/dagger-0.2.20/website/src/theme/DocCardList/index.d.ts 1970-01-01 01:00:00.000000000 +0100 +++ new/dagger-0.2.21/website/src/theme/DocCardList/index.d.ts 2022-06-28 14:02:01.000000000 +0200 @@ -0,0 +1,3 @@ +/// <reference types="react" /> +import type { Props } from '@theme/DocCardList'; +export default function DocCardList({ items, className }: Props): JSX.Element; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/website/src/theme/DocCardList/index.js new/dagger-0.2.21/website/src/theme/DocCardList/index.js --- old/dagger-0.2.20/website/src/theme/DocCardList/index.js 1970-01-01 01:00:00.000000000 +0100 +++ new/dagger-0.2.21/website/src/theme/DocCardList/index.js 2022-06-28 14:02:01.000000000 +0200 @@ -0,0 +1,26 @@ +import React from "react"; +import clsx from "clsx"; +import {findFirstCategoryLink} from "@docusaurus/theme-common"; +import DocCard from "@theme/DocCard"; +// Filter categories that don't have a link. +function filterItems(items) { + return items.filter((item) => { + if (item.type === "category") { + return !!findFirstCategoryLink(item); + } + return true; + }); +} +export default function DocCardList({items, className}) { + return ( + <section className={clsx("row", className)}> + {filterItems(items).map((item, index) => ( + <article + key={index} + className="col col--12 padding--none margin-bottom--sm"> + <DocCard key={index} item={item} /> + </article> + ))} + </section> + ); +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dagger-0.2.20/website/yarn.lock new/dagger-0.2.21/website/yarn.lock --- old/dagger-0.2.20/website/yarn.lock 2022-06-21 18:40:20.000000000 +0200 +++ new/dagger-0.2.21/website/yarn.lock 2022-06-28 14:02:01.000000000 +0200 @@ -3981,10 +3981,10 @@ resolved "https://registry.yarnpkg.com/cypress-localstorage-commands/-/cypress-localst..." integrity sha512-DIJLCIh+CcKulAxMVEng6EhpW691emHRqFUD4dK2HUn86Xzt3ABL3SkmxW4rXgvQt697nTDpZC+jo5K5BwndrQ== -cypress@10.1.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/cypress/-/cypress-10.1.0.tgz#6514a26c721822a02b..." - integrity sha512-aQ4JVZVib4Xd9FZW8IRZfKelUvqF4y5A+oUbNvn8TlsBmEfIg3m5Xd6Mt6PVU/jHiVJ9Psl905B3ZPnrDcmyuQ== +cypress@10.2.0: + version "10.2.0" + resolved "https://registry.yarnpkg.com/cypress/-/cypress-10.2.0.tgz#ca078abfceb13be2a3..." + integrity sha512-+i9lY5ENlfi2mJwsggzR+XASOIgMd7S/Gd3/13NCpv596n3YSplMAueBTIxNLcxDpTcIksp+9pM3UaDrJDpFqA== dependencies: "@cypress/request" "^2.88.10" "@cypress/xvfb" "^1.2.4" @@ -7924,10 +7924,10 @@ schema-utils "^3.0.0" semver "^7.3.2" -sass@^1.52.3: - version "1.52.3" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.52.3.tgz#b7cc7ffea2341ccc9a0c4fd3..." - integrity sha512-LNNPJ9lafx+j1ArtA7GyEJm9eawXN8KlA1+5dF6IZyoONg1Tyo/g+muOsENWJH/2Q1FHbbV4UwliU0cXMa/VIA== +sass@^1.53.0: + version "1.53.0" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.53.0.tgz#eab73a7baac045cc57ddc1d1..." + integrity sha512-zb/oMirbKhUgRQ0/GFz8TSAwRq2IlR29vOUJZOx0l8sV+CkHUfHa4u5nqrG+1VceZp7Jfj59SVW9ogdhTvJDcQ== dependencies: chokidar ">=3.0.0 <4.0.0" immutable "^4.0.0" ++++++ vendor.tar.gz ++++++ /work/SRC/openSUSE:Factory/dagger/vendor.tar.gz /work/SRC/openSUSE:Factory/.dagger.new.1548/vendor.tar.gz differ: char 5, line 1
participants (1)
-
Source-Sync