Skip to content

Conversation

@jadonamite
Copy link

e guide on setting up a production-grade CI/CD pipeline for Base using GitHub Actions.

Manual deployments from local machines are risky and non-reproducible. This guide provides a "set it and forget it" workflow that automates testing, funding, and deployment.

Key Additions
Architecture: A 3-stage pipeline (Test -> Auto-Fund -> Deploy).

Auto-Funding Script: A Node.js script using the @eth-optimism/sdk to check L2 balances and automatically bridge ETH from Sepolia L1 if the deployer wallet is running low.

Security: Best practices for managing private keys using GitHub Secrets ("Disposable Deployers").

Workflow: A complete .github/workflows/deploy.yml template compatible with Foundry.

File Changes
🆕 Created: apps/base-docs/docs/cookbook/automating-devops.mdx

Checklist
[x] Frontmatter (YAML) is correctly formatted with double quotes for titles.

[x] Code snippets (GitHub Actions YAML & Node.js) are linted.

[x] Documentation follows the existing style guide.

Added a comprehensive guide for building a CI/CD pipeline for Base, including auto-funding scripts and secure key management.
Removed unnecessary next step section from the DevOps guide.
@cb-heimdall
Copy link
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

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