Skip to content

Commit 93dd4ea

Browse files
committed
Add Context Action Links
1 parent e5cef86 commit 93dd4ea

File tree

7 files changed

+49
-3
lines changed

7 files changed

+49
-3
lines changed

.vitepress/config.mts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,20 @@ export default defineConfig({
7676
siteTitle: settings.siteTitle,
7777
logo: '/images/logo/logo32.png',
7878
nav: [
79-
{ text: 'Home', link: '/' },
80-
{ text: 'Guides', link: '/guides/get-started', activeMatch: '/guides/' },
79+
// { text: 'Home', link: '/' },
80+
{ text: 'Get Started', link: '/guides/get-started', activeMatch: '/guides/' },
8181
{ text: 'Docs', link: '/docs/inputs', activeMatch: '/docs/' },
82-
{ text: 'Help', link: '/support' },
82+
{ text: 'Support', link: '/support' },
8383
{
8484
text: 'Links',
8585
items: [
8686
{ text: 'GitHub Repository', link: settings.source_repo },
8787
{ text: 'GitHub Marketplace', link: settings.actions_url },
8888
{ text: 'GitHub Documentation', link: settings.docs_repo },
89+
{
90+
text: 'Docker Context Action',
91+
link: 'https://github.com/cssnr/docker-context-action?tab=readme-ov-file#readme',
92+
},
8993
{ text: 'Portainer Stack Deploy', link: 'https://portainer-deploy.cssnr.com/' },
9094
{ text: 'Developer Site', link: 'https://cssnr.github.io/' },
9195
{ text: 'Contribute', link: 'https://ko-fi.com/cssnr' },

.vitepress/vars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212
export const repos = [
1313
['cssnr/stack-deploy-action', 3],
14+
['cssnr/docker-context-action', 3],
1415
['hoverkraft-tech/compose-action', 1],
1516
['wshihadeh/docker-deployment-action', 3],
1617
['TapTap21/docker-remote-deployment-action', 3],

docs/guides/features.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ You can [get started here](get-started.md) or view [workflow examples](examples.
1818
If you need more options, please [open a feature request](https://github.com/cssnr/stack-deploy-action/discussions/categories/feature-requests)
1919
:::
2020

21+
<!--@include: ./include/context-action.md-->
22+
2123
## Remote Context
2224

2325
This action uses a [remote context](https://docs.docker.com/engine/manage-resources/contexts/)

docs/guides/get-started.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ To get started, create or update your [workflow file](#workflow) and review the
1212

1313
_You can also view the [features](features.md) and additional [examples](examples.md)._
1414

15+
<!--@include: ./include/context-action.md-->
16+
1517
## Workflow
1618

1719
Add the step to an existing workflow or create a new one.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<div class="info custom-block" style="padding-top: 8px">
2+
3+
<Badge type="tip" text="New" style="margin-right: 12px;" /> [Docker Context Action](https://github.com/cssnr/docker-context-action?tab=readme-ov-file#readme)
4+
5+
Set up a docker context in the current workflow to run `docker` commands in subsequent steps.
6+
7+
<details><summary>View Context Action Example</summary>
8+
9+
```yaml
10+
steps:
11+
- name: 'Docker Context'
12+
uses: cssnr/docker-context-action@v1
13+
with:
14+
host: ${{ secrets.DOCKER_HOST }}
15+
user: ${{ secrets.DOCKER_USER }}
16+
pass: ${{ secrets.DOCKER_PASS }}
17+
18+
- name: 'Stack Deploy'
19+
runs: docker stack deploy -c docker-compose.yaml --detach=false stack-name
20+
```
21+
22+
See the [README.md](https://github.com/cssnr/docker-context-action?tab=readme-ov-file#readme) on [GitHub](https://github.com/cssnr/docker-context-action) for more details.
23+
24+
</details>
25+
26+
</div>

docs/guides/resources.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ please submit a [feature request](https://github.com/cssnr/stack-deploy-action/d
4444

4545
&nbsp;
4646

47+
<!--@include: ./include/context-action.md-->
48+
4749
::: tip Additional Resources
4850
Have a related resource? Let us know by submitting a [PR](https://github.com/cssnr/stack-deploy-docs/edit/master/docs/guides/examples.md)
4951
or opening an [Issue](https://github.com/cssnr/stack-deploy-docs/issues) on [GitHub](https://github.com/cssnr/stack-deploy-docs).

docs/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ features:
3030
- title: Documentation
3131
details: Read the Documentation
3232
link: /docs/inputs
33+
- title: Examples
34+
details: View Example Workflows
35+
link: /guides/examples
36+
- title: Support
37+
details: Get Help with Anything
38+
link: /support
39+
- title: Docker Context Action
40+
details: Setup Remote Docker Context
41+
link: https://github.com/cssnr/docker-context-action?tab=readme-ov-file#readme
3342
- title: Portainer Deploy
3443
details: Deploy Directly to Portainer
3544
link: https://portainer-deploy.cssnr.com/

0 commit comments

Comments
 (0)