Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- name: Copy install script into site
run: cp install/install.sh docs/site/install.sh
- uses: actions/upload-pages-artifact@v3
with:
path: docs/site/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
### curl (MacOS / Linux)

```bash
curl -fsSL https://raw.githubusercontent.com/seanseannery/opsfile/main/install/install.sh | bash
curl -fsSL https://seanseannery.github.io/opsfile/install.sh | bash
```
Detects your OS, downloads the correct binary from the [latest GitHub release](https://github.com/seanseannery/opsfile/releases/latest), and installs to `/usr/local/bin/ops`.

Expand Down
28 changes: 21 additions & 7 deletions docs/site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h2>Installation</h2>
</div>

<div id="tab-curl" class="tab-content code-block">
<pre><code>curl -fsSL https://raw.githubusercontent.com/seanseannery/opsfile/main/install/install.sh | bash</code></pre>
<pre><code>curl -fsSL https://seanseannery.github.io/opsfile/install.sh | bash</code></pre>
</div>

<div id="tab-brew" class="tab-content code-block">
Expand Down Expand Up @@ -99,15 +99,15 @@ <h3>Step 1: Create an Opsfile</h3>
<span class="sh-comment"># Use "default" as a fallback when env-specific block is absent</span>
<span class="sh-cmd">tail-logs</span>:
<span class="sh-env">default</span>:
aws cloudwatch logs --tail <span class="sh-subst">$(AWS_ACCOUNT)</span>
aws logs tail /aws/ecs/my-service --follow --since 30m
<span class="sh-env">local</span>:
docker logs myapp --follow
docker logs myapp --follow --tail 100

<span class="sh-cmd">list-instance-ips</span>:
<span class="sh-env">prod</span>:
aws ec2 --list-instances
aws ec2 describe-instances --filters "Name=tag:Env,Values=prod" --query "Reservations[*].Instances[*].PrivateIpAddress" --output text
<span class="sh-env">preprod</span>:
aws ecs cluster --list-instances
aws ecs list-container-instances --cluster my-cluster-preprod --output text

<span class="sh-comment"># Shell env vars are injected automatically — ops falls back to env if not in Opsfile</span>
<span class="sh-cmd">show-profile</span>:
Expand All @@ -121,7 +121,7 @@ <h3>Step 2: Run ops commands</h3>
<span class="prompt">$</span> ops [flags] &lt;environment&gt; &lt;command&gt; [args]
</div>

<table>
<table class="flags-table">
<thead>
<tr>
<th>Flag</th>
Expand Down Expand Up @@ -173,6 +173,16 @@ <h2>Why use it?</h2>
<div class="feature-title">Encapsulation</div>
<p>Keep your Makefile focused on CI/CD</p>
</div>
<div class="feature-card">
<div class="feature-icon">🤝</div>
<div class="feature-title">Team Standardisation</div>
<p>No more tribal knowledge or Slack threads of bash one-liners. Opsfile lives in the repo — every teammate runs the same command, the same way, every time.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🔒</div>
<div class="feature-title">Secrets-Safe by Design</div>
<p>Reference secrets via environment variables — never commit credentials. Variables resolve from your shell at runtime, keeping sensitive values out of your repo.</p>
</div>
</div>
</div>
</section>
Expand All @@ -194,14 +204,18 @@ <h2>Links</h2>
<strong>Issues</strong>
<span>Bug reports and feature requests</span>
</a>
<a href="https://github.com/seanseannery/opsfile/discussions" class="link-card">
<strong>Discussions</strong>
<span>Questions, ideas, and community</span>
</a>
</div>
</div>
</section>

<!-- FOOTER -->
<footer class="site-footer">
<div class="container">
<p>© 2025 opsfile · MIT License · <a href="https://github.com/seanseannery/opsfile">GitHub</a></p>
<p>© 2026 seanseannery · MIT License · <a href="https://github.com/seanseannery/opsfile">GitHub</a></p>
</div>
</footer>

Expand Down
38 changes: 38 additions & 0 deletions docs/site/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,44 @@ pre > code {
user-select: none;
}

/* ─── Flags Table ────────────────────────────────────────────── */
.flags-table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
font-size: 0.9rem;
}

.flags-table th {
background: var(--bg);
color: var(--cyan);
text-align: left;
padding: 10px 14px;
border-bottom: 2px solid var(--cyan);
font-family: monospace;
font-weight: bold;
}

.flags-table td {
padding: 10px 14px;
border-bottom: 1px solid var(--subtle);
vertical-align: top;
color: var(--body);
}

.flags-table tr:last-child td {
border-bottom: none;
}

.flags-table tr:hover td {
background: var(--bg);
}

.flags-table td code {
color: var(--orange);
font-family: monospace;
}

/* ─── Usage Section ──────────────────────────────────────────── */
#usage,
.usage-section {
Expand Down
Loading