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

ci: move from drone ci to github actions #30

Merged
merged 2 commits into from
Apr 25, 2024
Merged

Conversation

starbops
Copy link
Member

IMPORTANT: Please do not create a Pull Request without creating an issue first.

Problem:

We're going to transfer to GitHub Actions from Drone CI.

Solution:

Migrate pipelines originally defined in .drone.yml to GitHub Actions workflows.

Besides the CI migration, the golangci-lint version is bumped and added a timeout flag for execution.

Related Issue:

harvester/harvester#5327

Test plan:

scripts/build Outdated Show resolved Hide resolved
Dockerfile.dapper Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@Yu-Jack Yu-Jack left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@starbops
Copy link
Member Author

The local build path using make package seems to be broken with a "file not found" error. We need to add the architecture suffix to the copy command. Please check again, thanks. cc @Yu-Jack

@starbops starbops requested a review from Yu-Jack April 24, 2024 11:36
Copy link
Contributor

@Yu-Jack Yu-Jack left a comment

Choose a reason for hiding this comment

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

After fixing that, run make build before running make package.

Since Dockerfile wil copy binaries for you, I think we don't need to copy in package.

scripts/package Outdated Show resolved Hide resolved
scripts/package-agent Outdated Show resolved Hide resolved
scripts/package-webhook Outdated Show resolved Hide resolved
@Yu-Jack
Copy link
Contributor

Yu-Jack commented Apr 25, 2024

One more question, do we need artifact folder here?

@Yu-Jack Yu-Jack self-requested a review April 25, 2024 01:31
Besides the CI migration, the golangci-lint version is bumped and added
a timeout flag for execution.

Signed-off-by: Zespre Chang <zespre.chang@suse.com>
@starbops
Copy link
Member Author

starbops commented Apr 25, 2024

One more question, do we need artifact folder here?

It seems like a legacy to me. I removed them entirely from the package scripts. I also added a new consolidated package script to package all three binaries at once. Thanks for the input!

scripts/package Show resolved Hide resolved
Signed-off-by: Zespre Chang <zespre.chang@suse.com>
Copy link
Contributor

@Yu-Jack Yu-Jack left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@starbops
Copy link
Member Author

starbops commented Apr 25, 2024

Waiting for rancherlabs/eio#2205. Please do not merge yet.


Update: the secrets were migrated.

@starbops starbops merged commit b5aae01 into harvester:main Apr 25, 2024
5 checks passed
@starbops starbops deleted the enh-5327 branch April 25, 2024 14:34
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.

3 participants