Skip to content

Commit

Permalink
adjusting CICD for new template options
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPates committed Nov 9, 2023
1 parent bf43976 commit ce53b68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 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@0.4.6
- go install honnef.co/go/tools/cmd/staticcheck@latest

# Install Testify to use common assertions and mocks in tests
- go get -u github.com/stretchr/testify
Expand Down
14 changes: 3 additions & 11 deletions cicd/build/package/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,12 @@ phases:
build:
commands:
# Create staging & release variants of the template.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
- sam package --no-progressbar --template-file template.yaml --s3-bucket ${S3Bucket} --output-template-file packaged.yaml

post_build:
commands:
- ls packaged-staging.yaml
- ls packaged-release.yaml
- ls packaged.yaml

artifacts:
files:
- packaged-staging.yaml
- packaged-release.yaml
- packaged.yaml

0 comments on commit ce53b68

Please sign in to comment.