diff --git a/stdlib/.dagger/env/aws-ecr-localstack/.gitignore b/stdlib/.dagger/env/aws-ecr-localstack/.gitignore new file mode 100644 index 00000000..01ec19b0 --- /dev/null +++ b/stdlib/.dagger/env/aws-ecr-localstack/.gitignore @@ -0,0 +1,2 @@ +# dagger state +state/** diff --git a/stdlib/.dagger/env/aws-ecr-localstack/values.yaml b/stdlib/.dagger/env/aws-ecr-localstack/values.yaml new file mode 100644 index 00000000..4dc687ba --- /dev/null +++ b/stdlib/.dagger/env/aws-ecr-localstack/values.yaml @@ -0,0 +1,30 @@ +plan: + package: ./aws/ecr/tests +name: aws-ecr-localstack +inputs: + TestConfig.awsConfig.accessKey: + secret: ENC[AES256_GCM,data:t/iOlA==,iv:oLhubqSKZqn5lVPFn8On//LPj1deAFPXKVTyBKdVODQ=,tag:PORmrxDIf/MHbFDrdxnlTQ==,type:str] + TestConfig.awsConfig.localMode: + text: "true" + TestConfig.awsConfig.secretKey: + secret: ENC[AES256_GCM,data:2HYF9w==,iv:f/a9dy4HLJOtKdn8G+zKTboXU1YhzXBEKT1WSvrsCvk=,tag:RKQO+Pg3wg23LIMAnyXhMA==,type:str] +sops: + kms: [] + gcp_kms: [] + azure_kv: [] + hc_vault: [] + age: + - recipient: age1gxwmtwahzwdmrskhf90ppwlnze30lgpm056kuesrxzeuyclrwvpsupwtpk + enc: | + -----BEGIN AGE ENCRYPTED FILE----- + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBKeEk5MS9nVmFoOVNNOHdE + WnZCTXBWbW9LL1NJYndCYjhIM2JsNXNEUmxJCkUya0dlZjZ0dGRIM1pVdzg5eWFH + MVpiaE9PclNudGdUZm5FcytuVDZGTDAKLS0tIEQxWDdteHgzS3JkdmtNTVpxMUh1 + aXlvVWJVSGNTSkVyYmpZbi9nUVJZdmMK6csXZ2RMxFw5DB+Hb2TyhyoZT8c2/z7Y + Lc9Pe8gb8aUq5Ha+wCybYvY6JWEM5A9XYJKbE7f4borTfGKS72d6pw== + -----END AGE ENCRYPTED FILE----- + lastmodified: "2021-08-16T20:52:50Z" + mac: ENC[AES256_GCM,data:31GBJoqzJOt2q29ql9xTGvhg6XaMupZliAEx2XXD19CvJuAlPdkkbdOP1quEDjHqeBfWUZlTTnqqm2HdSjJ9MgS7aSpgIwb65g/KMez/13QKqlicKaOT55uuyPmWh9+p0rSBCWTHo1vcZldXEuQ9eohwgkV1xHGU3tV+IsmlfrM=,iv:ISdTPiT3rUpZrmMoMBDYmQEB5Q6Tg5fx8leAS3B2kBU=,tag:z/4/2MS6CSlEC++9kCKn5Q==,type:str] + pgp: [] + encrypted_suffix: secret + version: 3.7.1 diff --git a/stdlib/aws/ecr/tests/ecr.cue b/stdlib/aws/ecr/tests/ecr.cue index c78a68eb..561f2cd7 100644 --- a/stdlib/aws/ecr/tests/ecr.cue +++ b/stdlib/aws/ecr/tests/ecr.cue @@ -11,11 +11,19 @@ TestConfig: awsConfig: aws.#Config & { } TestECR: { + localMode: TestConfig.awsConfig.localMode + suffix: random.#String & { seed: "" } - repository: "125635003186.dkr.ecr.\(TestConfig.awsConfig.region).amazonaws.com/dagger-ci" + repository: string + if localMode == null { + repository: "125635003186.dkr.ecr.\(TestConfig.awsConfig.region).amazonaws.com/dagger-ci" + } + if localMode != null { + repository: "localhost:4514/dagger-ci" + } tag: "test-ecr-\(suffix.out)" creds: #Credentials & {