From e751dead5b40870ea7f3d59d917e43ef281f2485 Mon Sep 17 00:00:00 2001 From: David Griffin Date: Tue, 12 Nov 2024 16:56:53 -0800 Subject: [PATCH 1/3] Add testtools image to pipeline. --- concourse/pipeline.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/concourse/pipeline.yml b/concourse/pipeline.yml index 2c4ac4d4..14bdf3f8 100644 --- a/concourse/pipeline.yml +++ b/concourse/pipeline.yml @@ -4,6 +4,15 @@ resource_types: type: docker-image source: repository: cfcommunity/slack-notification-resource + - name: buildx-resource + type: registry-image + privileged: true + source: + repository: shared-concourse-buildx + aws_access_key_id: ((prod-images-aws-access-key-id)) + aws_secret_access_key: ((prod-images-aws-secret-key)) + aws_region: us-east-2 + tag: latest resources: - name: notify @@ -41,6 +50,17 @@ resources: uri: git@github.com:fauna/testtools.git branch: main private_key: ((github-ssh-key)) + - name: testtools-deps-repo + type: git + icon: github + source: + uri: git@github.com:fauna/testtools.git + branch: main + private_key: ((github-ssh-key)) + paths: + - fauna-driver-platform-tests/package.json + - fauna-driver-platform-tests/Dockerfile + - name: testtools-image type: registry-image icon: docker @@ -49,6 +69,13 @@ resources: aws_access_key_id: ((prod-images-aws-access-key-id)) aws_secret_access_key: ((prod-images-aws-secret-key)) aws_region: us-east-2 + - name: build-and-publish-testtools-image + type: buildx-resource + source: + repo: ((prod-images-repo-url))/devex-dx-driver-platform-tests + aws_access_key_id: ((prod-images-aws-access-key-id)) + aws_secret_access_key: ((prod-images-aws-secret-key)) + icon: docker - name: perf-notify type: slack-notification @@ -70,6 +97,21 @@ jobs: - set_pipeline: self file: repo.git/concourse/pipeline.yml + - name: build-image + serial: true + plan: + - get: testtools-deps-repo + trigger: true + + - put: build-and-publish-testtools-image + inputs: + - testtools-deps-repo + params: + dir: testtools-deps-repo/fauna-driver-platform-tests/ + dockerfile: testtools-deps-repo/fauna-driver-platform-tests/Dockerfile.dotnet + build_platform: linux/amd64 + tag: latest + - name: tests-dev serial: true public: false From de96092223abc3d40908ece4962d1ad49789f7b8 Mon Sep 17 00:00:00 2001 From: David Griffin Date: Tue, 12 Nov 2024 18:32:06 -0800 Subject: [PATCH 2/3] Remove stray dotnet copypasta. --- concourse/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concourse/pipeline.yml b/concourse/pipeline.yml index 14bdf3f8..19eb5e2d 100644 --- a/concourse/pipeline.yml +++ b/concourse/pipeline.yml @@ -108,7 +108,7 @@ jobs: - testtools-deps-repo params: dir: testtools-deps-repo/fauna-driver-platform-tests/ - dockerfile: testtools-deps-repo/fauna-driver-platform-tests/Dockerfile.dotnet + dockerfile: testtools-deps-repo/fauna-driver-platform-tests/Dockerfile build_platform: linux/amd64 tag: latest From 66e726a95e966a9350e4ec5eb6cd64b7530e03b4 Mon Sep 17 00:00:00 2001 From: David Griffin Date: Wed, 13 Nov 2024 09:45:28 -0800 Subject: [PATCH 3/3] Correct ECR Repo. Co-authored-by: Adam Bollen <87334460+adambollen@users.noreply.github.com> --- concourse/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concourse/pipeline.yml b/concourse/pipeline.yml index 19eb5e2d..727a76e2 100644 --- a/concourse/pipeline.yml +++ b/concourse/pipeline.yml @@ -72,7 +72,7 @@ resources: - name: build-and-publish-testtools-image type: buildx-resource source: - repo: ((prod-images-repo-url))/devex-dx-driver-platform-tests + repo: ((prod-images-repo-url))/devex-dx-drivers-platform-tests aws_access_key_id: ((prod-images-aws-access-key-id)) aws_secret_access_key: ((prod-images-aws-secret-key)) icon: docker