Skip to content

Commit 7fd13bb

Browse files
committed
Revert "adjusting CICD for new template options"
This reverts commit ce53b68.
1 parent 99a1a69 commit 7fd13bb

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

cicd/build/build/buildspec.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ phases:
1515
- go install golang.org/x/lint/golint@latest
1616

1717
# Install staticcheck
18-
- go install honnef.co/go/tools/cmd/staticcheck@latest
18+
- go install honnef.co/go/tools/cmd/staticcheck@0.4.6
1919

2020
# Install Testify to use common assertions and mocks in tests
2121
- go get -u github.com/stretchr/testify

cicd/build/package/buildspec.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,20 @@ phases:
2424
build:
2525
commands:
2626
# Create staging & release variants of the template.yaml
27-
- sam package --no-progressbar --template-file template.yaml --s3-bucket ${S3Bucket} --output-template-file packaged.yaml
27+
- cp template.yaml staging.yaml
28+
- patch staging.yaml cicd/build/package/staging.patch
29+
- sam package --no-progressbar --template-file staging.yaml --s3-bucket ${S3Bucket} --output-template-file packaged-staging.yaml
30+
31+
- cp template.yaml release.yaml
32+
- patch release.yaml cicd/build/package/release.patch
33+
- sam package --no-progressbar --template-file release.yaml --s3-bucket ${S3Bucket} --output-template-file packaged-release.yaml
2834

2935
post_build:
3036
commands:
31-
- ls packaged.yaml
37+
- ls packaged-staging.yaml
38+
- ls packaged-release.yaml
3239

3340
artifacts:
3441
files:
35-
- packaged.yaml
42+
- packaged-staging.yaml
43+
- packaged-release.yaml

0 commit comments

Comments
 (0)