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: refactor workflows #275

Merged
merged 6 commits into from
Jul 24, 2023
Merged

ci: refactor workflows #275

merged 6 commits into from
Jul 24, 2023

Conversation

katexochen
Copy link
Contributor

Some refactoring of workflows:

  • Remove invalid filter on create trigger. This trigger doesn't allow filters.
  • Only use push trigger on main (wasn't used before anyway, as there was an if statement on most jobs).
  • Adding path filters to image-rs and ocicrypt-rs workflows.
  • Removing if statements on jobs. The workflow triggers control when a job run, no need to filter with an if statement on a single job.
  • Trying to unify naming a bit, fixing white space issues.
  • Adding workflow_dispatch trigger to every test workflow, so they can be triggered manually where needed (like on forks).

@katexochen katexochen requested a review from sameo as a code owner July 11, 2023 10:56
- 'main'
paths:
- 'image-rs/**'
- '.github/image_rs_build.yml'
Copy link
Member

@portersrc portersrc Jul 11, 2023

Choose a reason for hiding this comment

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

Hey @katexochen , I'm not strong with github workflows, but should this be .github/workflows/image_rs_build.yml? Similar thing for .github/workflows/ocicrypt_rs_build.yml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, thanks for catching this. :)

Copy link
Member

@Xynnn007 Xynnn007 left a comment

Choose a reason for hiding this comment

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

Much thanks for this @katexochen ! The CI now looks much better. Only some personal questions

@@ -1,6 +1,8 @@
name: CC kbc build CI
on:
push:
branches:
- "main"
Copy link
Member

Choose a reason for hiding this comment

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

I found others are 'main'. Does this matter? s.t. ' and "

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it makes a difference, but I updated it anyway for consistency.

@@ -4,3 +4,4 @@ Cargo.lock
.DS_Store

image-rs/scripts/attestation-agent
shell.nix
Copy link
Member

Choose a reason for hiding this comment

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

Is this something left when test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is part of my local development setup, so I added to .gitignore.

Copy link
Member

@arronwy arronwy left a comment

Choose a reason for hiding this comment

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

Thanks @katexochen LGTM!

@Xynnn007
Copy link
Member

Can you rebase this PR? @katexochen

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
@arronwy arronwy merged commit 814d34e into confidential-containers:main Jul 24, 2023
21 checks passed
@katexochen katexochen deleted the fix/ci-trigger branch July 24, 2023 07:49
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.

4 participants