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

feat: ci/cd #10

Merged
merged 17 commits into from
Jun 7, 2023
Merged

feat: ci/cd #10

merged 17 commits into from
Jun 7, 2023

Conversation

smrz2001
Copy link
Collaborator

@smrz2001 smrz2001 commented Jun 5, 2023

@stephhuynh18 @3benbox, here's the PR for the CASv5 Scheduler CI/CD. I've also opened a separate PR for changes on the CD Manager side.

There is one ugly part of this code that I'm going to fix in a subsequent PR - the Dagger Go dependencies are mixed in with the actual app dependencies. I'm going to pull the Dagger stuff out into its own repo and pull it in during CI/CD workflows instead of running it from within the repo like it is right now.

Steph, I've commented out the unit test piece until we can figure out why that one test case is failing when run via Dagger 😢

@smrz2001 smrz2001 self-assigned this Jun 5, 2023
@linear
Copy link

linear bot commented Jun 5, 2023

RES-1044 Deploy to Dev

@smrz2001 smrz2001 force-pushed the feature/res-1044-deploy-to-dev branch from 4fc406a to 24326e4 Compare June 5, 2023 23:46
@smrz2001 smrz2001 marked this pull request as ready for review June 6, 2023 21:58
Copy link
Contributor

@3benbox 3benbox left a comment

Choose a reason for hiding this comment

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

Just a question and request for code comment.

LGTM

Platform: "linux/amd64",
BuildArgs: []dagger.BuildArg{{Name: Env_EnvTag, Value: envTag}},
}).
WithRegistryAuth(
Copy link
Contributor

Choose a reason for hiding this comment

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

It's strange to me that the registry auth is done at this point, before the image is being pushed.

Is that a convenience or a requirement for the dagger client?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, it can be moved. The auth token is used during push but I can move the token retrieval closer to the push as well 👍🏼

ci/cmd/deploy/main.go Show resolved Hide resolved
Copy link
Collaborator

@stephhuynh18 stephhuynh18 left a comment

Choose a reason for hiding this comment

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

Will look at the failing test shortly

@smrz2001 smrz2001 merged commit c679f6e into develop Jun 7, 2023
@smrz2001 smrz2001 deleted the feature/res-1044-deploy-to-dev branch June 7, 2023 19:04
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