Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix and cleanup of v2 setup actions #93

Merged
merged 4 commits into from
Aug 16, 2020

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Aug 16, 2020

Ref. #71

  • Cleanup unused deps
  • Fix package/action info
  • Fix post state builder name for setup-buildx
  • Add buildkitd-flags input

@crazy-max crazy-max requested a review from tonistiigi August 16, 2020 02:13
@crazy-max crazy-max self-assigned this Aug 16, 2020
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the v2-fix-setup-actions branch from f376e82 to e9cb922 Compare August 16, 2020 02:14
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the v2-fix-setup-actions branch from 030beb5 to 6aa6546 Compare August 16, 2020 02:20
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the v2-fix-setup-actions branch from 20b7c93 to 82c243c Compare August 16, 2020 04:48
@crazy-max crazy-max mentioned this pull request Aug 16, 2020
19 tasks
@tonistiigi tonistiigi merged commit 068cb8e into v2-working-branch Aug 16, 2020
| `version` | String | _the one installed on the runner_ | [Buildx](https://github.com/docker/buildx) version. e.g. `v0.3.0`, `latest` |
| `driver` | String | `docker-container` | Sets the [builder driver](https://github.com/docker/buildx#--driver-driver) to be used. |
| `driver-opt` | String | | Passes additional [driver-specific options](https://github.com/docker/buildx#--driver-opt-options). e.g. `image=moby/buildkit:master` |
| `buildkitd-flags` | String | | [Flags for buildkitd](https://github.com/moby/buildkit/blob/master/docs/buildkitd.toml.md) daemon. |
Copy link
Member

Choose a reason for hiding this comment

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

wondering if should add special case for allow-insecure-entitlement so it works together with allow in build action. Or actually, maybe we should just always enable allow-insecure-entitlement in github actions context as these run in a isolated VM anyway. I could also add --allow-insecure-entitlement=all in buildkit.

Copy link
Member Author

Choose a reason for hiding this comment

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

@tonistiigi

wondering if should add special case for allow-insecure-entitlement so it works together with allow in build action. Or actually, maybe we should just always enable allow-insecure-entitlement in github actions context as these run in a isolated VM anyway.

Yes, that was the purpose of integrating buildkit-flags so that I can use a local registry for testing. And indeed in the case of GitHub Actions it seems logical to me to enable allow-insecure-entitlement by default.

I could also add --allow-insecure-entitlement=all in buildkit.

Yes SGTM!

Copy link
Member Author

Choose a reason for hiding this comment

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

@tonistiigi Ok local registry is working in our ci workflow.

@crazy-max crazy-max deleted the v2-fix-setup-actions branch August 17, 2020 00:48
@crazy-max crazy-max added this to the v2 milestone Sep 2, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants