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

SRE-1276 Promote docker images composite action #153

Merged
merged 25 commits into from
Dec 4, 2023

Conversation

tyanko1
Copy link
Contributor

@tyanko1 tyanko1 commented Nov 28, 2023

Composite action to copy a source image typically from Infra to the deployment destination account registry. Many of these inputs may not be necessary in the context of a complete workflow, but added them for now anyway so that the action could be tested and is relatively self-contained.

In addition to limited unit testing, tested manually (as much as possible) in the following pipeline: https://github.com/JupiterOne/provision-cortex/actions/runs/7061537740/job/19228891765

@tyanko1 tyanko1 marked this pull request as ready for review December 1, 2023 18:01
@tyanko1 tyanko1 requested a review from a team as a code owner December 1, 2023 18:01
docker pull ${{ inputs.source_account_id }}.dkr.ecr.${{ inputs.source_region }}.amazonaws.com/${{ inputs.image_name }}:$tag
done
- name: bootstrap_target_ecr_registry
uses: jupiterone/provision-cortex/.github/actions/create_ecr_repo@SRE-1479
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a ticket or some kind of reminder to ensure this gets updated once this work has been elevated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just went ahead and updated it now since this action wont work until that gets merged in anyway.

image_names: ${{ inputs.image_name }}
project_name: ${{ inputs.project_name }}
target_environment: ${{ inputs.target_environment }}
- name: configurate_target_account_aws_credentials
Copy link
Contributor

Choose a reason for hiding this comment

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

configurate_target_account_aws_credentials -> configure_target_account_aws_credentials

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you ain't ne'er heard of configuratin', boy?

Updated

runs:
using: "composite"
steps:
- name: configurate_source_account_aws_credentials
Copy link
Contributor

Choose a reason for hiding this comment

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

configurate_source_account_aws_credentials -> configure_source_account_aws_credentials

@@ -0,0 +1,33 @@
import { MockGithub } from '@kie/mock-github';
Copy link
Contributor

Choose a reason for hiding this comment

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

So as this test shows, there's nothing to really test here. In this case I think we'd be better served deleting this tests as it really offers no value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright cool I just left in in place in case we wanted to extend it later but may as well just remove it altogether.

@tyanko1 tyanko1 merged commit f68c31f into main Dec 4, 2023
@tyanko1 tyanko1 deleted the SRE-1276_promote_docker_image_action branch December 4, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants