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

ecr-push: add option to disable digest tag push #172

Merged
merged 4 commits into from
Feb 3, 2025

Conversation

at-wat
Copy link
Member

@at-wat at-wat commented Dec 26, 2024

Add an option:

  push-digest-tag:
    description: Push also digest tag (default: true)
    required: true
    default: true

@at-wat at-wat self-assigned this Dec 26, 2024
@at-wat at-wat requested review from a team, HeRoMo and wakamatsu-seq and removed request for a team January 20, 2025 05:04
@at-wat at-wat requested a review from Taka-Kazu February 3, 2025 03:59
Copy link
Contributor

@Taka-Kazu Taka-Kazu left a comment

Choose a reason for hiding this comment

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

LGTM. I left a minor comment.

Comment on lines 43 to 49
if [ "${{ inputs.push-digest-tag }}" = "true" ]; then
docker tag \
${{ inputs.image }}:${{ inputs.src-tag }} \
${{ steps.login-ecr.outputs.registry }}/${{ inputs.image }}:${digest}
docker push \
${{ steps.login-ecr.outputs.registry }}/${{ inputs.image }}:${digest}
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know it's really better, but maybe this part could be a separate step.

Copy link
Member Author

Choose a reason for hiding this comment

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

Separated the step

@at-wat at-wat requested a review from Taka-Kazu February 3, 2025 05:27
@at-wat at-wat merged commit 3f61c1f into main Feb 3, 2025
5 checks passed
@at-wat at-wat deleted the ecr-push/add-option-to-disable-digest-tag branch February 3, 2025 07:19
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.

None yet

2 participants