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

[FX-NULL] Add gh-runners-driver-opts option #356

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

catks
Copy link
Member

@catks catks commented Nov 4, 2024

Description

Add gh-runners-driver-opts input in build-push action.

We can use a custom image to avou DockerHub Rate limit errors like:
Fix Error: ERROR: Error response from daemon: No such image: moby/buildkit:buildx-stable-1 / ERROR: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

How to test

  • Action is green in a workflow using it

Development checks

  • Add changeset according to guidelines (if needed)
PR commands

List of available commands:

  • @toptal-anvil ping reviewers - Ping FX team for review

Copy link

changeset-bot bot commented Nov 4, 2024

🦋 Changeset detected

Latest commit: 7e822d6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
davinci-github-actions Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@catks catks added the no-jira label Nov 4, 2024
@catks catks marked this pull request as ready for review November 4, 2024 16:36
@catks catks changed the title [CASE] Add gh-runners-driver-opts in build-push action Add gh-runners-driver-opts in build-push action Nov 4, 2024
@catks catks marked this pull request as draft November 4, 2024 16:40
@catks catks closed this Nov 4, 2024
@catks catks reopened this Nov 4, 2024
@sashuk sashuk force-pushed the case-fix-build-push-docker-rate-limit branch from 57ce269 to 7e822d6 Compare November 6, 2024 11:44
@sashuk sashuk marked this pull request as ready for review November 6, 2024 11:44
@sashuk sashuk self-assigned this Nov 6, 2024
@@ -61,6 +61,9 @@ inputs:
registry-name:
required: true
description: 'Registry to push the builded image'
gh-runner-driver-opts:
required: false
description: 'Driver options for GH Runners'
Copy link
Collaborator

Choose a reason for hiding this comment

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

@catks I deleted the default value that you initially provided to allow docker/setup-buildx-action be more flexible, is it okay? I can image that docker/setup-buildx-action updates tomorrow and starts using another default value (and this affects us as we use major version tag v3) we will have to update the default value here as well to keep up.

Screenshot 2024-11-06 at 11 45 06

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good, but note it will cause a problem if anyone uses the action with the master branch as we are introducing a new required input in this case

@sashuk sashuk changed the title Add gh-runners-driver-opts in build-push action [FX-NULL] Add gh-runners-driver-opts in build-push action Nov 6, 2024
@sashuk sashuk changed the title [FX-NULL] Add gh-runners-driver-opts in build-push action [FX-NULL] Add gh-runners-driver-opts option Nov 6, 2024
@sashuk sashuk requested review from a team and denieler and removed request for a team November 6, 2024 11:48
@sashuk
Copy link
Collaborator

sashuk commented Nov 6, 2024

@toptal-anvil ping reviewers

@sashuk sashuk merged commit 5f88bee into master Nov 6, 2024
6 of 10 checks passed
@sashuk sashuk deleted the case-fix-build-push-docker-rate-limit branch November 6, 2024 12:51
@github-actions github-actions bot mentioned this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants