-
Notifications
You must be signed in to change notification settings - Fork 13
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
ci: move from drone ci to github actions #44
Conversation
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.
Cause original drone needs arm64 and amd64, so you need to change following files:
- scripts/build
- scripts/package
- package/Dockerfile*
You could refer other finished repositories, but feel free to ask any question, there might be something we didn't consider.
e4e044b
to
a402e39
Compare
Thanks @Yu-Jack, I've addressed the comments. Please take a look when you are available. |
scripts/package
Outdated
if [ -e ${DOCKERFILE}.${ARCH} ]; then | ||
DOCKERFILE=${DOCKERFILE}.${ARCH} | ||
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 could remove this?
scripts/package-webhook
Outdated
if [ -e ${DOCKERFILE}.${ARCH} ]; then | ||
DOCKERFILE=${DOCKERFILE}.${ARCH} | ||
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.
same here
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.
LGTM
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.
LGTM. Thanks.
with: | ||
secrets: | | ||
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ; | ||
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKER_PASSWORD |
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.
Not sure whether we need to change this like
https://github.com/harvester/terraform-provider-harvester/blob/4e07ed02cba6fe7fc37bc0d41ff433df81e69915/.github/workflows/build.yml#L58-L59.
We can merge it first and see whether we can get credential. Thanks.
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.
Not sure which one is right...
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials
or secret/data/github/repo/${{ github.repository }}/dockerhub/harvester/credentials
I saw some of repos like load-balancer-harvester, vm-import-controller use the former one.
Maybe both of them works.
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.
c.c. @Yu-Jack
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 asked this question before here https://github.com/rancherlabs/eio/issues/2153#issuecomment-2074150242. I think rancher
is enough although I'm not sure why harvester
works in https://github.com/harvester/terraform-provider-harvester.
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.
Got it. Thanks for the information.
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.
LGTM, thanks
@Mergifyio backport v0.1.x v0.2.x |
✅ Backports have been created
|
related to harvester/harvester#5327