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

fix potential infinite loop by removing dynamic part of filename #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kingphil
Copy link

@kingphil kingphil commented Nov 30, 2022

More explanation here. #15

This is a suggested fix with a hard-coded filename. If a dynamic filename is needed, other info could be added (e.g. repo namespace and repo name, build number, or maybe just DRONE_COMMIT_SHA).

Copy link

@Neferpitooou Neferpitooou left a comment

Choose a reason for hiding this comment

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

but I guess, this variable helps to create a unique value filename on the target directory. for example, if this will create something like artifacts... It is very relevant to have. But if these configurations create such loops in exporting this file, then yet yes, it is worth re-configuring but not REMOVING.

@@ -14,7 +14,7 @@ steps:
image: bitnami/kubectl:1.22.2
user: root # the bitnami/kubectl image has a non-root user set by default, which does not work with the shared docker volume which is owned by root
commands:
- export KUBECONFIG=kubeconfig-$${DRONE_BUILD_STARTED}.yaml

Choose a reason for hiding this comment

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

but I guess, this variable helps to create a unique value filename on the target directory. for example, if this will create something like artifacts... It is very relevant to have. But if these configurations create such loops in exporting this file, then yet yes, it is worth re-configuring but not REMOVING.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants