这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@BachErik
Copy link
Owner

@BachErik BachErik commented Dec 5, 2024

This PR improves the existing GitHub Actions workflow for deploying Kubernetes preview environments and introduces the following enhancements:

Changes Introduced:

  1. Improved Workflow Triggers:

    • Added triggers for unlabeled and synchronize events to manage deployment more dynamically.
  2. Enhanced Namespace Management:

    • Combined namespace creation into the deployment configuration for cleaner resource definitions.
  3. Dynamic Comments on PR:

    • Automatically deletes old bot comments and posts updates when the preview is deployed or cleaned up.
    • Includes a direct link to the preview environment and timestamps for better traceability.
  4. Image Pull Policy:

    • Added imagePullPolicy: Always to ensure the latest image is deployed.
  5. Cleanup Logic:

    • Handles unlabeled and closed PRs to remove preview environments and notify users.

Benefits:

  • Simplifies namespace creation and management.
  • Keeps PR discussions clean with dynamic comment handling.
  • Improves user experience by providing real-time updates and preview links.

@BachErik BachErik added deploy-preview Deploys this PR and removed deploy-preview Deploys this PR labels Dec 5, 2024
@BachErik BachErik merged commit e6de172 into main Dec 5, 2024
10 checks passed
@BachErik BachErik deleted the optimize-preview branch December 5, 2024 17:47
@github-actions
Copy link

github-actions bot commented Dec 5, 2024

🚨 Preview has been deleted.

The namespace and resources associated with this pull request have been cleaned up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy-preview Deploys this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants