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

add flag --no-push #21

Merged
merged 6 commits into from Apr 29, 2021
Merged

add flag --no-push #21

merged 6 commits into from Apr 29, 2021

Conversation

rauny-brandao
Copy link
Contributor

Add flag --no-push, reference: https://github.com/GoogleContainerTools/kaniko#--no-push

Use case:

We want to build our images without pushing it when someone opens a pull request in our repository.

Example:

/kaniko/executor \
--dockerfile=./xvfb/Dockerfile \
--context=dir://. \
--destination=public.ecr.aws/[redacted] \
--cache=true \
--cache-repo=public.ecr.aws/[redacted] --no-push

INFO[0019] Skipping push to container registry due to --no-push flag 

image

@shubham149 can you review it please?

kaniko.go Outdated Show resolved Hide resolved
@shubham149 shubham149 merged commit e65b7b3 into drone:main Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants