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

Update image_repo references #1680

Merged
merged 6 commits into from
Jul 1, 2022
Merged

Update image_repo references #1680

merged 6 commits into from
Jul 1, 2022

Conversation

jmgrady
Copy link
Collaborator

@jmgrady jmgrady commented Jul 1, 2022

Change

Replace references to input.image_repo with the new input names:

  • image_registry, and
  • image_registry_alias

Details

PR #1677 change how AWS ECR was referenced in order to support an AWS ECR public registry. The input to the custom git hub actions, combine-build and combine-deploy-update, that specifies the image registry to use was changed; the single image_repo input was changed to image_registry and image_registry_alias.

The implementation of this change was not complete. The required updates to the combine-deploy-update were missed. This PR completes the required changes.

Closes #1679


This change is Reviewable

Replace references to input.image_repo with the new input names:
- image_registry, and
- image_registry_alias
@jmgrady jmgrady added bug Something isn't working CI/CD labels Jul 1, 2022
@jmgrady jmgrady self-assigned this Jul 1, 2022
@jmgrady jmgrady requested a review from imnasnainaec July 1, 2022 15:51
@jmgrady jmgrady marked this pull request as ready for review July 1, 2022 15:52
Copy link
Collaborator

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @jmgrady)


.github/actions/combine-deploy-update/action.yml line 5 at r1 (raw file):

inputs:
  image_registry:
    description: "Docker Image Repository"

Update description too?

Code quote:

"Docker Image Repository"

Copy link
Collaborator Author

@jmgrady jmgrady left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @jmgrady)


.github/actions/combine-deploy-update/action.yml line 5 at r1 (raw file):

Previously, imnasnainaec (D. Ror.) wrote…

Update description too?

Done.

@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2022

Codecov Report

Merging #1680 (e200bfc) into master (a9bfe6a) will increase coverage by 0.16%.
The diff coverage is 43.11%.

@@            Coverage Diff             @@
##           master    #1680      +/-   ##
==========================================
+ Coverage   52.16%   52.32%   +0.16%     
==========================================
  Files         272      275       +3     
  Lines        8436     8498      +62     
  Branches      616      616              
==========================================
+ Hits         4401     4447      +46     
- Misses       3541     3558      +17     
+ Partials      494      493       -1     
Flag Coverage Δ
backend 80.51% <ø> (+0.28%) ⬆️
frontend 32.68% <43.11%> (+0.31%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/components/App/component.tsx 100.00% <ø> (ø)
src/components/ContextMenu/ContextMenu.tsx 90.47% <ø> (ø)
...ents/DataEntry/DataEntryHeader/DataEntryHeader.tsx 50.00% <ø> (ø)
...onents/DataEntry/DataEntryTable/DataEntryTable.tsx 39.28% <ø> (ø)
.../DataEntry/DataEntryTable/NewEntry/SenseDialog.tsx 11.11% <0.00%> (-1.39%) ⬇️
.../components/GoalTimeline/GoalTimelineComponent.tsx 64.10% <ø> (ø)
src/components/LandingPage/LandingButtons.tsx 53.84% <0.00%> (-4.49%) ⬇️
src/components/LandingPage/index.tsx 50.00% <0.00%> (-50.00%) ⬇️
src/components/Login/LoginPage/LoginComponent.tsx 58.62% <ø> (ø)
...components/PasswordReset/RequestPage/component.tsx 0.00% <ø> (ø)
... and 80 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ae7b4a...e200bfc. Read the comment docs.

Copy link
Collaborator

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @jmgrady)


.github/actions/combine-deploy-update/action.yml line 36 at r2 (raw file):

      run: kubectl --context ${{ inputs.kube_context }}
        set image deployment/frontend
        frontend="${{ inputs.image_registry }}${{ inputs.image_registry_alias}}/combine_frontend:${{ inputs.image_tag }}"

So there's no / or : or anything else separating these two things?

Code quote:

${{ inputs.image_registry }}${{ inputs.image_registry_alias}}

Copy link
Collaborator Author

@jmgrady jmgrady left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @imnasnainaec and @jmgrady)


.github/actions/combine-deploy-update/action.yml line 36 at r2 (raw file):

Previously, imnasnainaec (D. Ror.) wrote…

So there's no / or : or anything else separating these two things?

Correct. The / is part of the image_registry_alias. For the private registry (builds for the QA server) there is no image_registry_alias; for the public registry, there is one. I did not include the alias as part of the image_registry because during the build process, we login to the image_registry so that the images can be pushed to the registry. During the login, the alias is not part of the login command.

I have updated the description to indicate that the / should be in the image_registry_alias.

Copy link
Collaborator

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jmgrady)

@jmgrady jmgrady enabled auto-merge (squash) July 1, 2022 18:15
@jmgrady jmgrady merged commit cfb6e38 into master Jul 1, 2022
@jmgrady jmgrady deleted the fix-ci-cd-repo-names branch July 1, 2022 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI/CD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI/CD scripts fail to update QA/Production servers
3 participants