From 7fd13bbf55c0e061f0c9cabd916b9b5bd05dbfdb Mon Sep 17 00:00:00 2001 From: Chris Pates Date: Thu, 9 Nov 2023 18:39:00 +0000 Subject: [PATCH] Revert "adjusting CICD for new template options" This reverts commit ce53b68fe5be0bb1218a4db4d4a047514566ad27. --- cicd/build/build/buildspec.yml | 2 +- cicd/build/package/buildspec.yml | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/cicd/build/build/buildspec.yml b/cicd/build/build/buildspec.yml index 38180598..585e1bd5 100644 --- a/cicd/build/build/buildspec.yml +++ b/cicd/build/build/buildspec.yml @@ -15,7 +15,7 @@ phases: - go install golang.org/x/lint/golint@latest # Install staticcheck - - go install honnef.co/go/tools/cmd/staticcheck@latest + - go install honnef.co/go/tools/cmd/staticcheck@0.4.6 # Install Testify to use common assertions and mocks in tests - go get -u github.com/stretchr/testify diff --git a/cicd/build/package/buildspec.yml b/cicd/build/package/buildspec.yml index b4d78349..15bd40ed 100644 --- a/cicd/build/package/buildspec.yml +++ b/cicd/build/package/buildspec.yml @@ -24,12 +24,20 @@ phases: build: commands: # Create staging & release variants of the template.yaml - - sam package --no-progressbar --template-file template.yaml --s3-bucket ${S3Bucket} --output-template-file packaged.yaml + - cp template.yaml staging.yaml + - patch staging.yaml cicd/build/package/staging.patch + - sam package --no-progressbar --template-file staging.yaml --s3-bucket ${S3Bucket} --output-template-file packaged-staging.yaml + + - cp template.yaml release.yaml + - patch release.yaml cicd/build/package/release.patch + - sam package --no-progressbar --template-file release.yaml --s3-bucket ${S3Bucket} --output-template-file packaged-release.yaml post_build: commands: - - ls packaged.yaml + - ls packaged-staging.yaml + - ls packaged-release.yaml artifacts: files: - - packaged.yaml + - packaged-staging.yaml + - packaged-release.yaml