You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add retry_push_count option to expose retry-push CLI options (#91)
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]>
Copy file name to clipboardExpand all lines: action.yml
+39-20Lines changed: 39 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ inputs:
38
38
default: "true"
39
39
use_unstable_cli:
40
40
description: |
41
-
If true, this action pulls the `main` branch of blue-build/cli instead of the stable version the current action version is configured to use by default.
41
+
If true, this action pulls the `main` branch of blue-build/cli instead of the stable version the current action version is configured to use by default.
42
42
This feature is useful for testing new features, but should not be used in production.
43
43
Input must match the string 'true' for the unstable version to be used.
44
44
required: false
@@ -73,6 +73,11 @@ inputs:
73
73
Make use of layer cache by pushing the layers to the registry. Input must match the string 'true' for the step to be enabled.
74
74
required: false
75
75
default: "false"
76
+
retry_push_count:
77
+
description: |
78
+
The number of times to retry pushing the image.
79
+
required: false
80
+
default: 0
76
81
squash:
77
82
description: |
78
83
Uses buildah to squash the build's layers into a single layer. Use of this option
0 commit comments