Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(pipelines): remove here string from buildspec #4102

Merged
merged 2 commits into from Oct 21, 2022

Conversation

huanjani
Copy link
Contributor

Fixes second issue in #3553.

Here strings (<<<) don't work with sh. This change makes the pipeline buildspec a bit more universal.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.

@huanjani huanjani requested a review from a team as a code owner October 21, 2022 17:20
@huanjani huanjani requested review from KollaAdithya and removed request for a team October 21, 2022 17:20
@codecov-commenter
Copy link

Codecov Report

Merging #4102 (0c986e8) into mainline (3c4fd93) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           mainline    #4102      +/-   ##
============================================
- Coverage     69.17%   69.14%   -0.03%     
============================================
  Files           248      249       +1     
  Lines         35608    35656      +48     
  Branches        264      264              
============================================
+ Hits          24631    24654      +23     
- Misses         9782     9805      +23     
- Partials       1195     1197       +2     
Impacted Files Coverage Δ
internal/pkg/manifest/errors.go 51.89% <0.00%> (-23.11%) ⬇️
internal/pkg/manifest/env.go 77.77% <0.00%> (-0.99%) ⬇️
internal/pkg/manifest/deprecated.go 100.00% <0.00%> (ø)
...ternal/pkg/deploy/cloudformation/cloudformation.go 73.02% <0.00%> (+0.54%) ⬆️
internal/pkg/manifest/validate_env.go 85.52% <0.00%> (+1.09%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -49,7 +49,7 @@ phases:
# Check if the `svc package` commanded exited with a non-zero status. If so, echo error msg and exit.
- >
for env in $pl_envs; do
tag=$(sed 's/:/-/g' <<<"${CODEBUILD_BUILD_ID##*:}-${env}" | rev | cut -c 1-128 | rev)
tag=$(echo ${CODEBUILD_BUILD_ID##*:}-$env | sed 's/:/-/g' | rev | cut -c 1-128 | rev)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to make sure was this tested in manually? do the tags in ECR look the same as before by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup yup!

@mergify mergify bot merged commit 112d9af into aws:mainline Oct 21, 2022
Sprint 🏃‍♀️ automation moved this from In review to Pending release Oct 21, 2022
KollaAdithya pushed a commit to KollaAdithya/copilot-cli that referenced this pull request Oct 21, 2022
Fixes second issue in aws#3553.

Here strings (`<<<`) don't work with `sh`. This change makes the pipeline buildspec a bit more universal.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
@huanjani huanjani deleted the buildspec branch October 25, 2022 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Sprint 🏃‍♀️
  
Pending release
Development

Successfully merging this pull request may close these issues.

None yet

4 participants