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: add inputs to k8s apply workflow #18

Merged
merged 35 commits into from
Jan 7, 2025

Conversation

micheledellipaoli-pagopa
Copy link
Contributor

No description provided.


initChecks:
runs-on: ubuntu-22.04
environment: ${{ inputs.environment }}
if: ${{ inputs.run_k8s_workflow == true }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this job should always run

@@ -113,7 +128,7 @@ jobs:
delete_runner:
name: Delete Self-Hosted Runner
needs: [create_runner, deploy]
if: ${{ always() }}
if: ${{ inputs.run_k8s_workflow == true }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if: ${{ inputs.run_k8s_workflow == true }}
if: ${{ always() && inputs.run_k8s_workflow == true }}

I know this looks strange, but it's a workaround to force this job to run in the case when

  • run_k8s_workflow == true
  • the deploy step fails for some reason
    otherwise it would not delete the runners

@micdes-pagopa micdes-pagopa merged commit 5e77ec1 into main Jan 7, 2025
19 checks passed
@micdes-pagopa micdes-pagopa deleted the PIN-5811-automating-deployments-jobs-monitoring branch January 7, 2025 13: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.

2 participants