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

Simplify automation workflows #3689

Merged
merged 33 commits into from
Jan 5, 2023
Merged

Simplify automation workflows #3689

merged 33 commits into from
Jan 5, 2023

Conversation

lindluni
Copy link
Contributor

@lindluni lindluni commented Dec 23, 2022

This PR is a full rework of our CICD practices.

  1. Splits the CI portions that run on Pull Request as a separate workflow from CD where we publish images on merge to main. This make it easier to understand what is happening when.
  2. Cleaned up the names of each step to make them visible by making them shorter to prevent being cutoff in the UI, but also to make them more descriptive of what the step was doing.
  3. Uses the larger-hosted runner which helps with the time it takes to build the image, but also with the number of times we encounter the anonymous IP rate limit throttles on GitHub due to using unauthenticated calls to GitHub.
  4. Simplified the Matrix strategy to only need variations that are required, reducing the number of inputs.
  5. Disabled the PSMissingModuleManifestField Powershell linting rule for our repo as it is erroneously assuming our PWSH linter templates are actual Powershell modules as we used poor naming schemes for the Powershell linter rules filename.

Signed-off-by: Brett Logan lindluni@github.com

@lindluni lindluni changed the title Simplify automation workflows [WIP]: Simplify automation workflows Dec 24, 2022
@lindluni lindluni changed the title [WIP]: Simplify automation workflows Simplify automation workflows Jan 4, 2023
@lindluni lindluni marked this pull request as ready for review January 4, 2023 00:50
@lindluni lindluni force-pushed the workflow branch 5 times, most recently from ee37bb8 to 8194128 Compare January 4, 2023 06:35
Copy link
Collaborator

@ferrarimarco ferrarimarco left a comment

Choose a reason for hiding this comment

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

A few small nits 😄

.github/linters/actionlint.yaml Show resolved Hide resolved
.github/workflows/cd.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/release.yml Show resolved Hide resolved
.github/workflows/stack-linter.yml Outdated Show resolved Hide resolved
@lindluni lindluni force-pushed the workflow branch 3 times, most recently from 5fbad1e to 3318e16 Compare January 5, 2023 04:13
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
The PSScriptAnalyzer expects a text file, not a PowerShell extension
on the filename. The latest version of powershell now respects this
rule and breaks testing as the settings file doesn't meet the requirements
of the linter.

Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
Signed-off-by: Brett Logan <lindluni@github.com>
@ferrarimarco
Copy link
Collaborator

We might want to disable the Stack linter required check on the main branch protection rule.

@ferrarimarco
Copy link
Collaborator

(I don't have the right privileges to do that)

@lindluni lindluni merged commit de0d0f7 into main Jan 5, 2023
@lindluni lindluni deleted the workflow branch January 5, 2023 14:46
@ferrarimarco ferrarimarco added infrastructure related to project structure and maintenance automation related to helping the project operate more efficiently labels Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation related to helping the project operate more efficiently infrastructure related to project structure and maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants