WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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
Hi,
I have a ready-to-go Dockerfile to run with docker buildx. It uses --allow security.insecure. It is working fine locally creating some output files with docker's "COPY directive".
Now I want create a workflow for this.
My plan is to use checkout then: docker/setup-buildx-action@v3 - I probably need this for "security.insecure" builder, right?
Then I am wondering what next?
I only want to build it and upload-artifact, so my plan was to use: build-push-action@v6
and actions/[email protected].
Is this a correct way?
If you set the buildkitd-flags input, the default flags (--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host)
will be reset. If you want to retain the default behavior, make sure to
include these flags in your custom buildkitd-flags value.
Great!
So after the setup-buildx-action I need to build-push-action?
I don't need to push it elsewhere in internet - I only want to obtain the output files as assets.
Is just the path where build result will be output and in this case will be ./build.
Exactly
So no need security.insecure. This entitlement is just needed if you need to run privileged containers in your Dockerfile (RUN) and doesn't seem you need that looking at your Dockerfile
nope - Look in my Dockerfile - I am running a script. Exactly this one. Without privileged (unsecure) container I've always got: Permission denied. Are you root? even when I was root.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Works at first try :)
For interested: https://github.com/manio/aa-proxy-rs/blob/main/.github/workflows/docker-image.yml