Skip to content

Commit

Permalink
Revert "adjusting CICD for new template options"
Browse files Browse the repository at this point in the history
This reverts commit ce53b68.
  • Loading branch information
ChrisPates committed Dec 7, 2023
1 parent 99a1a69 commit 7fd13bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cicd/build/build/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 11 additions & 3 deletions cicd/build/package/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7fd13bb

Please sign in to comment.