-
-
Notifications
You must be signed in to change notification settings - Fork 17
Add GitHub preview action for automated container builds and deployment instructions #960
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
Conversation
…tions Co-authored-by: commjoen <[email protected]>
Co-authored-by: commjoen <[email protected]>
|
@copilot can you fix the failing GitHub actions in this pr? |
Co-authored-by: commjoen <[email protected]>
Fixed the failing GitHub Actions in the preview workflow. The main issues were:
All validation checks now pass:
The workflow should now run successfully on every PR and main branch push. Commit: fe2bc35 |
|
@copilot can you fix the issue in https://github.com/OWASP/wrongsecrets-ctf-party/actions/runs/17005114867/job/48213798173?pr=960 please? |
|
@copilot for the ghcr containers, can you add “Linux/arm64” next to the existing platforms (amd64) |
Co-authored-by: commjoen <[email protected]>
Fixed the JavaScript syntax error in the preview workflow. The issue was in the GitHub script where template literal interpolation was causing "SyntaxError: Unexpected identifier 'ghcr'" when markdown content contained backticks. Changed to use environment variable approach instead of direct interpolation. Commit: 4b2cbea |
Co-authored-by: commjoen <[email protected]>
Added ARM64 platform support to the GitHub Container Registry builds. The preview workflow now builds containers for both |
🚀 Preview Deployment Ready!Your pull request has been built and is ready for preview deployment. Container Images Built
Quick Deploy with Helm# Add the wrongsecrets helm repository
helm repo add wrongsecrets https://owasp.org/wrongsecrets-ctf-party
helm repo update
# Deploy with preview images
helm install my-preview wrongsecrets/wrongsecrets-ctf-party \
--set balancer.repository=ghcr.io/OWASP/wrongsecrets-balancer \
--set balancer.tag=pr-960 \
--set wrongsecretsCleanup.repository=ghcr.io/OWASP/cleaner \
--set wrongsecretsCleanup.tag=pr-960 \
--set imagePullPolicy=Always
# Port forward to access locally
kubectl port-forward service/wrongsecrets-balancer 3000:3000Deploy with Custom ValuesClick to see preview-values.yamlbalancer:
repository: ghcr.io/OWASP/wrongsecrets-balancer
tag: pr-960
wrongsecretsCleanup:
repository: ghcr.io/OWASP/cleaner
tag: pr-960
# Preview configuration
ingress:
enabled: true
hosts:
- host: >-
preview-pr-960.wrongsecrets.local
paths:
- "/"# Save the above values to preview-values.yaml, then:
helm install my-preview wrongsecrets/wrongsecrets-ctf-party \
-f preview-values.yamlDeploy with Local Build Scripts# Clone this PR
git fetch origin pull/960/head:pr-960
git checkout pr-960
# Use the existing deployment script with custom images
./build-and-deploy.shTest the Changes
Container RegistryThe preview images are available at:
This preview was automatically generated for PR #960 |
This PR implements a comprehensive GitHub Actions workflow that automatically creates preview deployments for every pull request and main branch push, making it easy for contributors and reviewers to test changes before merging.
What's New
Automated Container Builds
wrongsecrets-balancerandcleanercontainers on every PRpr-{number}tags for PRs andmainfor main branch pushesIntelligent PR Comments
Seamless Integration
Example Usage
When a PR is opened, contributors and reviewers will see an automated comment like:
# Quick deployment with preview images helm install my-preview wrongsecrets/wrongsecrets-ctf-party \ --set balancer.repository=ghcr.io/owasp/wrongsecrets-balancer \ --set balancer.tag=pr-123 \ --set wrongsecretsCleanup.repository=ghcr.io/owasp/cleaner \ --set wrongsecretsCleanup.tag=pr-123Technical Implementation
.github/workflows/preview.ymlhandles the entire build and publish pipelineCONTRIBUTING.mdand updatedREADME.mdThis enhancement significantly improves the contributor experience by eliminating manual setup for testing changes and provides reviewers with an easy way to validate functionality before approval.
Fixes #959.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.