Skip to content

feat: add retry_push_count option to expose retry-push CLI options#91

Merged
gmpinder merged 1 commit intoblue-build:mainfrom
HastD:retry-push
Sep 2, 2025
Merged

feat: add retry_push_count option to expose retry-push CLI options#91
gmpinder merged 1 commit intoblue-build:mainfrom
HastD:retry-push

Conversation

@HastD
Copy link
Copy Markdown
Contributor

@HastD HastD commented Aug 21, 2025

It's reasonably common for the image pushing step to fail in CI due to transient network issues, so it makes sense to expose the --retry-push and --retry-count options in the GitHub action. This adds a retry_push_count option to the action that defaults to 0, and if set to be nonzero, it enables --retry-push and passes the retry count to the CLI.

I also did a bit of minor cleanup of the action:

  • Updated actions/checkout to v5.0.0.
  • Added persist-credentials: false to actions/checkout for security, per Zizmor recommendation.
  • Converted direct template expansions (which are potentially vulnerable to code injection attacks) into environment variables.
  • Quoted shell variables to prevent unintended shell splitting.

@HastD HastD requested a review from xynydev as a code owner August 21, 2025 14:12
gmpinder
gmpinder previously approved these changes Aug 21, 2025
@gmpinder
Copy link
Copy Markdown
Member

Thanks for the contribution!

@HastD

This comment was marked as resolved.

It's reasonable common for the image pushing step to fail in CI due to
transient network issues, so it makes sense to expose the `--retry-push`
and `--retry-count` options in the GitHub action. This adds a
`retry_push_count` option to the action that defaults to 0, and if set
to be nonzero, it enables `--retry-push` and passes the retry count to
the CLI.

I also did a bit of minor cleanup of the action:
* Updated actions/checkout to v5.0.0.
* Added `persist-credentials: false` to actions/checkout for security,
  per Zizmor recommendation.
* Converted direct template expansions (which are potentially
  vulnerable to code injection attacks) into environment variables.
* Quoted shell variables to prevent unintended shell splitting.

Signed-off-by: Daniel Hast <[email protected]>
@HastD HastD changed the title feat: add retry_count option to expose retry-push CLI options feat: add retry_push_count option to expose retry-push CLI options Aug 21, 2025
@HastD HastD requested a review from gmpinder August 21, 2025 20:49
@gmpinder gmpinder merged commit 2c22aca into blue-build:main Sep 2, 2025
@HastD HastD deleted the retry-push branch September 2, 2025 22:14
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.

2 participants