Skip to content

Commit e439bf3

Browse files
authored
Add StackTable for Comparison (#3)
1 parent 5f3f53b commit e439bf3

File tree

8 files changed

+187
-12
lines changed

8 files changed

+187
-12
lines changed

.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default defineConfig({
3838
config(md) {
3939
md.use(groupIconMdPlugin)
4040
},
41-
// toc: { level: [2] },
41+
toc: { level: [2] },
4242
},
4343

4444
title: settings.title,
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<script setup>
2+
const props = defineProps({
3+
repos: { type: Array, required: true },
4+
style: { type: String, default: 'flat' },
5+
})
6+
7+
function getLink(type, repo) {
8+
const links = {
9+
stars: `https://img.shields.io/github/stars/${repo}?style=${props.style}&label=%20&color=forestgreen`,
10+
forks: `https://img.shields.io/github/forks/${repo}?style=${props.style}&label=%20&color=blue`,
11+
last: `https://img.shields.io/github/last-commit/${repo}?display_timestamp=committer&style=${props.style}&label=%20`,
12+
language: `https://img.shields.io/github/languages/top/${repo}?style=${props.style}`,
13+
}
14+
return links[type]
15+
}
16+
</script>
17+
18+
<template>
19+
<table class="stack-table">
20+
<thead>
21+
<tr>
22+
<th>Repositories - {{ props.repos.length }}</th>
23+
<th class="center" style="padding: 0">⭐🍴</th>
24+
<th class="center">Updated</th>
25+
<th>Language</th>
26+
</tr>
27+
</thead>
28+
<tbody>
29+
<tr v-for="repo in props.repos" :key="repo">
30+
<td class="repository">
31+
<a :href="`https://github.com/${repo}`" :title="repo" target="_blank" rel="noopener">{{ repo }}</a>
32+
</td>
33+
<td class="center">
34+
<a :href="`https://github.com/${repo}/stargazers`" target="_blank" rel="noopener">
35+
<img alt="S" :src="getLink('stars', repo)" style="margin-right: 4px"
36+
/></a>
37+
<a :href="`https://github.com/${repo}/forks`" target="_blank" rel="noopener">
38+
<img alt="F" :src="getLink('forks', repo)"
39+
/></a>
40+
</td>
41+
<td class="center">
42+
<a :href="`https://github.com/${repo}/pulse`" target="_blank" rel="noopener">
43+
<img alt="Updated" :src="getLink('last', repo)"
44+
/></a>
45+
</td>
46+
<td>
47+
<a :href="`https://github.com/${repo}/network/dependents`" target="_blank" rel="noopener">
48+
<img alt="Language" :src="getLink('language', repo)" />
49+
</a>
50+
</td>
51+
</tr>
52+
</tbody>
53+
</table>
54+
</template>
55+
56+
<style scoped>
57+
.stack-table td.repository {
58+
text-wrap: nowrap;
59+
overflow: hidden;
60+
text-overflow: ellipsis;
61+
max-width: 160px;
62+
}
63+
@media (min-width: 540px) {
64+
.stack-table td.repository {
65+
max-width: 200px;
66+
}
67+
}
68+
@media (min-width: 721px) {
69+
.stack-table td.repository {
70+
max-width: 260px;
71+
}
72+
}
73+
@media (min-width: 1066px) {
74+
.stack-table td.repository {
75+
max-width: 310px;
76+
}
77+
}
78+
79+
.stack-table td {
80+
padding: 4px;
81+
}
82+
.stack-table img {
83+
height: auto;
84+
width: auto;
85+
max-width: none;
86+
max-height: none;
87+
margin-right: 0;
88+
vertical-align: middle;
89+
}
90+
.stack-table .center {
91+
text-align: center;
92+
text-wrap: nowrap;
93+
}
94+
</style>

.vitepress/theme/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ summary {
1717
cursor: pointer;
1818
}
1919

20+
table th {
21+
text-wrap: nowrap;
22+
}
23+
2024
.vp-doc img {
2125
display: inline-block;
2226
margin-right: 8px;

.vitepress/theme/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'virtual:group-icons.css'
44

55
import Contributors from './components/Contributors.vue'
66
import YouTubeEmbed from './components/YouTubeEmbed.vue'
7+
import StackTable from './components/StackTable.vue'
78

89
// noinspection JSUnusedGlobalSymbols
910
export default {
@@ -13,5 +14,6 @@ export default {
1314
app.component('Badge', VPBadge)
1415
app.component('Contributors', Contributors)
1516
app.component('YouTubeEmbed', YouTubeEmbed)
17+
app.component('StackTable', StackTable)
1618
},
1719
}

docs/docs/inputs.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Inputs
22

3-
The inputs are organized in a table for quick [reference](#reference) with additional [details](#details) below.
4-
5-
## Reference
6-
7-
💡 You can click on an input for more [Details](#details).
3+
💡 Click on the **Input Name** for more [Details](#details).
84

95
| Input&nbsp;Name | Default&nbsp;Value | Short&nbsp;Description&nbsp;of&nbsp;the&nbsp;Input&nbsp;Value |
106
| :------------------------------------ | :---------------------------------- | :------------------------------------------------------------ |
@@ -161,7 +157,7 @@ If you need compose file templating this can also be done in a previous step.
161157

162158
_Compose._ You can also add to the [args](#args) with `--env-file stringArray`.
163159

164-
::: tip IMPORTANT
160+
::: info
165161
**This is NOT** the Docker compose [env_file](https://docs.docker.com/compose/how-tos/environment-variables/set-environment-variables/#use-the-env_file-attribute) directive.
166162
That is set in your compose file as normal.
167163
:::
@@ -179,7 +175,7 @@ Default: `true`
179175

180176
### prune
181177

182-
Prune dangling images. Set to `true` to enable.
178+
Prune services that are no longer referenced. Set to `true` to enable.
183179

184180
_See the [stack deploy Options](https://docs.docker.com/reference/cli/docker/stack/deploy/#options) for more details._
185181

@@ -223,6 +219,6 @@ Required to run [docker login](https://docs.docker.com/reference/cli/docker/logi
223219

224220
Write a Summary for the job. To disable this set to `false`.
225221

226-
_For more information see [Job Summary](../guides/features.md#job-summary)._
222+
For more information see [Job Summary](../guides/features.md#job-summary).
227223

228224
Default: `true`

docs/guides/features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ See the [Inputs Documentation](../docs/inputs.md) for more options.
1515

1616
You can [get started here](get-started.md) or view [workflow examples](examples.md).
1717

18-
::: info FEATURE REQUEST
18+
::: tip Request a Feature
1919
If you need more options, please [open a feature request](https://github.com/cssnr/stack-deploy-action/discussions/categories/feature-requests)
2020
:::
2121

docs/guides/get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ For more details see the [README.md](https://github.com/cssnr/portainer-stack-de
9494

9595
&nbsp;
9696

97-
::: info FEATURE REQUEST
97+
::: tip Request a Feature
9898
If you need more options, please [open a feature request](https://github.com/cssnr/stack-deploy-action/discussions/categories/feature-requests)
9999
:::

docs/guides/resources.md

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,88 @@ A collection of resources and guides for getting started.
1010

1111
<YouTubeEmbed video-id="fuZoxuBiL9o" />
1212

13+
## Action Comparison
14+
15+
The majority of other actions available have not been recently updated
16+
and most of them are forks and clones of each other.
17+
18+
This action was built from the ground up to deploy a Docker swarm stack
19+
then updated to allow Docker compose deployments.
20+
21+
The goal of this action is to be the ultimate Docker deployment action on GitHub.
22+
To date every [issue](https://github.com/cssnr/stack-deploy-action/issues) has been fixed
23+
and all [feature requests](https://github.com/cssnr/stack-deploy-action/discussions/categories/feature-requests) have been added.
24+
25+
::: warning
26+
None of these actions have been tested. This is an exhaustive list of published actions.
27+
:::
28+
29+
<StackTable
30+
:repos="[
31+
'cssnr/stack-deploy-action',
32+
'hoverkraft-tech/compose-action',
33+
'wshihadeh/docker-deployment-action',
34+
'TapTap21/docker-remote-deployment-action',
35+
'kitconcept/docker-stack-deploy',
36+
'serversideup/github-action-docker-swarm-deploy',
37+
'matchory/docker-swarm-deployment-action',
38+
'chaplyk/docker-compose-remote-action',
39+
'matiasnu/github-action-ssh-docker-compose',
40+
'astappiev/docker-compose-remote-action',
41+
'sulthonzh/docker-remote-deployment-action',
42+
'masterjanic/docker-compose-ssh-deployment',
43+
'littleboyfury/ssh-docker-run',
44+
'djnotes/github-action-ssh-docker-compose',
45+
'hasnat/deploy-docker-compose',
46+
'shockhs/docker-stack-deploy',
47+
'open-fringecore/docker-ssh-push',
48+
'alcharra/docker-deploy-action-go',
49+
'erwanclx/docker-remote-deployment-action',
50+
'humbertocrispim/ssh-docker-compose-action',
51+
'jacobjove/deploy-docker-ssh',
52+
'5eqn/docker-compose-remote-action',
53+
'kamina7/docker-swarm-ssh-deploy-action',
54+
'nightstory/setup-docker-remote',
55+
'simbamarufu1/docker-swarm-deploy-action',
56+
'Falling42/ssh-deploy',
57+
'thomasvjoseph/ssh-docker',
58+
'Vrashabh-Sontakke/docker-stack-deploy-action',
59+
'prvious/ssh-docker',
60+
'sidikfaha/deploy-docker',
61+
'gronitab/docker-swarm-deploy-action',
62+
'38ri581oq480/docker-run-command-remote-host-action',
63+
'keatonLiu/docker-compose-remote-action',
64+
'mannes/docker-remote-deployment-action',
65+
'goldor8/custom-docker-compose-ssh-deployment',
66+
'manugame/custom-docker-compose-ssh-deployment',
67+
'hamidfzm/docker-remote-deployment-action',
68+
'revelhome/stack-deploy-action',
69+
'jrm402/docker-stack-deploy',
70+
'sklimaszewski/dokploy-deploy-image-action',
71+
'dombyte/docker-deploy',
72+
'modcraftmc/custom-docker-compose-ssh-deployment',
73+
'anilrajrimal1/ecr-docker-ssh-deployer',
74+
'hantastic3/ssh-deploy-action',
75+
'tristiisch/docker-stack-deployment',
76+
'sovarto/deploy-swarm-service',
77+
'leonidgrishenkov/docker-stack-deploy',
78+
'harrisonratcliffe/github-action-docker-swarm-deploy',
79+
'xfathurrahman/tailscale-stack-deploy-action',
80+
'qdrx/stack-deploy-action',
81+
'deriannavy/docker-context-action',
82+
'Autom3/docker-deployment-action',
83+
]"
84+
</StackTable>
85+
86+
> **Updated** - Link to Pulse (activity)
87+
> **Language** - Link to Dependants (users)
88+
89+
If there are any missing [features](../guides/features.md) you need,
90+
please submit a [feature request](https://github.com/cssnr/stack-deploy-action/discussions/categories/feature-requests) and we will get them added...
91+
1392
&nbsp;
1493

15-
::: tip
94+
::: tip Additional Resources
1695
Have a related resource? Let us know by submitting a [PR](https://github.com/cssnr/stack-deploy-docs/edit/master/docs/guides/examples.md)
1796
or opening an [Issue](https://github.com/cssnr/stack-deploy-docs/issues) on [GitHub](https://github.com/cssnr/stack-deploy-docs).
1897
:::

0 commit comments

Comments
 (0)