-
Notifications
You must be signed in to change notification settings - Fork 25
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
CSI-2625 create driver ci #344
base: develop
Are you sure you want to change the base?
CSI-2625 create driver ci #344
Conversation
…into task/CSI-2625_add_another_stage_before_the_merge
Signed-off-by: matancarmeli7 <[email protected]>
Signed-off-by: matancarmeli7 <[email protected]>
if [ "$docker_image_branch_tag" == "develop" ]; then | ||
docker_image_branch_tag=latest | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can avoid double assignment if we move this if
to the first assignment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean by "first assignment"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i.e.
triggering_branch = ${CI_ACTION_REF_NAME}
.
.
.
if [ "$triggering_branch" == "develop" ]; then
docker_image_branch_tag=latest
else
docker_image_branch_tag=`echo $driver_image_tags | awk '{print$2}'`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but without backticks of course
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you also put the triggering_branch = ${CI_ACTION_REF_NAME}
line before the driver_image_tags=$(scripts/ci/get_image_tags_from_branch.sh ...
line?
it's hard to decipher the name github chose for this env var
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also why is it sometimes docker_image...
and not driver_image...
?
Signed-off-by: matancarmeli7 <[email protected]>
Signed-off-by: matancarmeli7 <[email protected]>
Signed-off-by: matancarmeli7 <[email protected]>
Signed-off-by: matancarmeli7 <[email protected]>
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9.7' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you remind me what is this for?
it's hard to tell which setup is required by which logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it for docker/build-push-action
?
cache-to: type=local,dest=/tmp/.buildx-new-${{ matrix.image_type }} | ||
# Temp fix | ||
# CSI-3164 | ||
# https://github.com/docker/build-push-action/issues/252 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you check if this is still needed?
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: CSI-controller- static code analysis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: CSI-controller- static code analysis | |
- name: CSI-controller: static code analysis |
(same for unit testing, etc...)
could you align the names to the ones in the jenkinsfile, as much as possible?
unless you know of an easy way to maintain them in one place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would also mean:
k8s yamls validation
should be:
K8s yamls validation
(in both files)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as here
No description provided.