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
8 changes: 6 additions & 2 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: "PR Labeler"
on:
pull_request_target:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
labeler:
name: "Labeler"
Expand All @@ -15,7 +19,7 @@ jobs:

steps:
- name: "Checkout Configs"
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
repository: cssnr/configs
ref: master
Expand All @@ -37,7 +41,7 @@ jobs:

- name: "Label Creator"
continue-on-error: true
uses: cssnr/label-creator-action@v1
uses: cssnr/label-creator-action@latest
with:
file: .configs/labels/labels.yaml

Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "Lint"

on:
workflow_dispatch:
pull_request:
push:
branches: [master]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -18,17 +18,27 @@ jobs:

permissions:
pull-requests: write
statuses: write
checks: write

steps:
- name: "Checkout"
uses: actions/checkout@v5

#- name: "Debug event.json"
# continue-on-error: true
# run: cat "${GITHUB_EVENT_PATH}"

#- name: "Debug CTX github"
# continue-on-error: true
# env:
# GITHUB_CTX: ${{ toJSON(github) }}
# run: echo "$GITHUB_CTX"

#- name: "Debug Environment"
# continue-on-error: true
# run: env

- name: "ShellCheck"
if: ${{ !cancelled() }}
uses: ludeeus/action-shellcheck@master
Expand All @@ -37,15 +47,15 @@ jobs:
with:
scandir: src

- name: "Prettier"
- name: "prettier"
if: ${{ !cancelled() }}
run: |
echo "::group::Install"
npm install prettier
echo "::endgroup::"
npx prettier --check .

- name: "Yamllint"
- name: "yamllint"
if: ${{ !cancelled() }}
env:
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
Expand All @@ -55,7 +65,7 @@ jobs:
echo "::endgroup::"
yamllint -d '${{ env.CONFIG }}' .

- name: "Actionlint"
- name: "actionlint"
if: ${{ !cancelled() }}
run: |
echo "::group::Download"
Expand All @@ -71,9 +81,9 @@ jobs:
echo "::endgroup::"
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=

- name: "Hadolint"
- name: "hadolint"
if: ${{ !cancelled() }}
uses: hadolint/hadolint-action@v3.1.0
uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: Dockerfile
ignore: DL3018
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: "Mirror to Codeberg"
uses: cssnr/mirror-repository-action@v1
uses: cssnr/mirror-repository-action@latest
with:
host: https://codeberg.org
create: true
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "Pull"

on:
pull_request_target:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pull:
name: "Pull"
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
pull-requests: write
issues: write

steps:
- name: "Debug CTX github"
continue-on-error: true
env:
GITHUB_CTX: ${{ toJSON(github) }}
run: echo "$GITHUB_CTX"

- name: "Checkout Pull"
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: "Debug"
continue-on-error: true
run: |
echo "::group::ls"
ls -lAh .
echo "::endgroup::"
echo "::group::tree"
tree .
echo "::endgroup::"

#- name: "NPM Outdated Check"
# continue-on-error: true
# uses: cssnr/npm-outdated-action@latest

- name: "Actions Up"
continue-on-error: true
uses: cssnr/actions-up-action@latest
with:
exclude: "cssnr/.*,actions/.*"
12 changes: 10 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
steps:
- name: "Update Tags"
id: tags
uses: cssnr/update-version-tags-action@v1
uses: cssnr/update-version-tags-action@latest
with:
tags: "latest"

- name: "Debug Tags"
continue-on-error: true
Expand All @@ -30,9 +32,15 @@ jobs:
with:
tags: ${{ steps.tags.outputs.tags }}
location: tail
type: "actions"

#- name: "Package Changelog Action"
# continue-on-error: true
# uses: cssnr/package-changelog-action@latest

- name: "Send Failure Notification"
if: ${{ failure() }}
uses: sarisia/actions-status-discord@v1
uses: sarisia/actions-status-discord@b8381b25576cb341b2af39926ab42c5056cc44ed # v1.15.5
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}
2 changes: 1 addition & 1 deletion .github/workflows/tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: "Update Tags"
uses: cssnr/update-version-tags-action@v1
uses: cssnr/update-version-tags-action@latest
with:
tag: ${{ inputs.tag }}
token: ${{ secrets.GH_PAT }}
33 changes: 19 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/stack-deploy-action?logo=github&label=updated)](https://github.com/cssnr/stack-deploy-action/pulse)
[![Codeberg Last Commit](https://img.shields.io/gitea/last-commit/cssnr/stack-deploy-action/master?gitea_url=https%3A%2F%2Fcodeberg.org%2F&logo=codeberg&logoColor=white&label=updated)](https://codeberg.org/cssnr/stack-deploy-action)
[![Docs Last Commit](https://img.shields.io/github/last-commit/cssnr/stack-deploy-docs?logo=vitepress&logoColor=white&label=docs)](https://docker-deploy.cssnr.com/)
[![GitHub Contributors](https://img.shields.io/github/contributors-anon/cssnr/stack-deploy-action?logo=github)](https://github.com/cssnr/stack-deploy-action/graphs/contributors)
[![GitHub Repo Size](https://img.shields.io/github/repo-size/cssnr/stack-deploy-action?logo=bookstack&logoColor=white&label=repo%20size)](https://github.com/cssnr/stack-deploy-action?tab=readme-ov-file#readme)
[![GitHub Top Language](https://img.shields.io/github/languages/top/cssnr/stack-deploy-action?logo=sharp&logoColor=white)](https://github.com/cssnr/stack-deploy-action)
[![GitHub Contributors](https://img.shields.io/github/contributors-anon/cssnr/stack-deploy-action?logo=github)](https://github.com/cssnr/stack-deploy-action/graphs/contributors)
[![GitHub Discussions](https://img.shields.io/github/discussions/cssnr/stack-deploy-action?logo=github)](https://github.com/cssnr/stack-deploy-action/discussions)
[![GitHub Forks](https://img.shields.io/github/forks/cssnr/stack-deploy-action?style=flat&logo=github)](https://github.com/cssnr/stack-deploy-action/forks)
[![GitHub Repo Stars](https://img.shields.io/github/stars/cssnr/stack-deploy-action?style=flat&logo=github)](https://github.com/cssnr/stack-deploy-action/stargazers)
Expand All @@ -19,17 +19,16 @@

# Docker Stack Deploy Action

<a title="Docker Stack Deploy" href="https://docker-deploy.cssnr.com/" target="_blank">
<img alt="Docker Stack Deploy" align="right" width="128" height="auto" src="https://raw.githubusercontent.com/cssnr/stack-deploy-docs/refs/heads/master/docs/public/images/logo/logo512.png"></a>

- [Features](#Features)
- [Inputs](#Inputs)
- [Examples](#Examples)
- [Tags](#Tags)
- [Support](#Support)
- [Contributing](#Contributing)

<p align="center"><a title="Docker Stack Deploy" href="https://docker-deploy.cssnr.com/" target="_blank">
<img alt="Docker Stack Deploy" width="256" height="auto" src="https://raw.githubusercontent.com/cssnr/stack-deploy-docs/refs/heads/master/docs/public/images/logo/logo512.png" />
</a></p>

Easily Deploy a Docker Swarm or Compose Stack, from a compose file, to a remote Docker host over SSH, with keyfile or password authentication.

Deploy directly from the actions working directory without copying any files using a remote Docker context.
Expand Down Expand Up @@ -71,7 +70,7 @@ steps:
pass: ${{ secrets.DOCKER_PASS }}

- name: 'Stack Deploy'
runs: docker stack deploy -c docker-compose.yaml --detach=false stack-name
run: docker stack deploy -c docker-compose.yaml --detach=false stack-name
```

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.
Expand All @@ -93,6 +92,8 @@ _Portainer Users: You can deploy directly to Portainer with: [cssnr/portainer-st

Don't see your feature here? Please help by submitting a [Feature Request](https://github.com/cssnr/stack-deploy-action/discussions/categories/feature-requests).

You can also view an [Action Comparison](https://docker-deploy.cssnr.com/guides/resources#action-comparison) of 50+ actions published on the marketplace.

## Inputs

> [!IMPORTANT]
Expand Down Expand Up @@ -590,25 +591,27 @@ For more information, see the CSSNR [SUPPORT.md](https://github.com/cssnr/.githu

# Contributing

Contributions of all kinds are welcome, including updating this [README.md](https://github.com/cssnr/stack-deploy-action/blob/master/README.md).
If you would like to submit a PR, please review the [CONTRIBUTING.md](#contributing-ov-file).

To contribute to the [documentation site](https://docker-deploy.cssnr.com/) go to [cssnr/stack-deploy-docs](https://github.com/cssnr/stack-deploy-docs).

Please consider making a donation to support the development of this project
and [additional](https://cssnr.com/) open source projects.

[![Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/cssnr)

Additionally, you can support other GitHub Actions I have published:
[![Actions Tools](https://raw.githubusercontent.com/smashedr/repo-images/refs/heads/master/actions/actions-tools.png)](https://actions-tools.cssnr.com/)

Additionally, you can support other [GitHub Actions](https://actions.cssnr.com/) I have published:

- [Stack Deploy Action](https://github.com/cssnr/stack-deploy-action?tab=readme-ov-file#readme)
- [Portainer Stack Deploy Action](https://github.com/cssnr/portainer-stack-deploy-action?tab=readme-ov-file#readme)
- [Docker Context Action](https://github.com/cssnr/docker-context-action?tab=readme-ov-file#readme)
- [Actions Up Action](https://github.com/cssnr/actions-up-action?tab=readme-ov-file#readme)
- [Zensical Action](https://github.com/cssnr/zensical-action?tab=readme-ov-file#readme)
- [VirusTotal Action](https://github.com/cssnr/virustotal-action?tab=readme-ov-file#readme)
- [Mirror Repository Action](https://github.com/cssnr/mirror-repository-action?tab=readme-ov-file#readme)
- [Update Version Tags Action](https://github.com/cssnr/update-version-tags-action?tab=readme-ov-file#readme)
- [Docker Tags Action](https://github.com/cssnr/docker-tags-action?tab=readme-ov-file#readme)
- [TOML Action](https://github.com/cssnr/toml-action?tab=readme-ov-file#readme)
- [Update JSON Value Action](https://github.com/cssnr/update-json-value-action?tab=readme-ov-file#readme)
- [JSON Key Value Check Action](https://github.com/cssnr/json-key-value-check-action?tab=readme-ov-file#readme)
- [Parse Issue Form Action](https://github.com/cssnr/parse-issue-form-action?tab=readme-ov-file#readme)
Expand All @@ -627,6 +630,7 @@ Additionally, you can support other GitHub Actions I have published:

These actions are not published on the Marketplace, but may be useful.

- [cssnr/create-files-action](https://github.com/cssnr/create-files-action?tab=readme-ov-file#readme) - Create various files from templates.
- [cssnr/draft-release-action](https://github.com/cssnr/draft-release-action?tab=readme-ov-file#readme) - Keep a draft release ready to publish.
- [cssnr/env-json-action](https://github.com/cssnr/env-json-action?tab=readme-ov-file#readme) - Convert env file to json or vice versa.
- [cssnr/push-artifacts-action](https://github.com/cssnr/push-artifacts-action?tab=readme-ov-file#readme) - Sync files to a remote host with rsync.
Expand All @@ -641,10 +645,11 @@ These actions are not published on the Marketplace, but may be useful.

These are basic action templates that I use for creating new actions.

- [js-test-action](https://github.com/smashedr/js-test-action?tab=readme-ov-file#readme) - JavaScript
- [py-test-action](https://github.com/smashedr/py-test-action?tab=readme-ov-file#readme) - Python
- [ts-test-action](https://github.com/smashedr/ts-test-action?tab=readme-ov-file#readme) - TypeScript
- [docker-test-action](https://github.com/smashedr/docker-test-action?tab=readme-ov-file#readme) - Docker Image
- [javascript-action](https://github.com/smashedr/javascript-action?tab=readme-ov-file#readme) - JavaScript
- [typescript-action](https://github.com/smashedr/typescript-action?tab=readme-ov-file#readme) - TypeScript
- [py-test-action](https://github.com/smashedr/py-test-action?tab=readme-ov-file#readme) - Dockerfile Python
- [test-action-uv](https://github.com/smashedr/test-action-uv?tab=readme-ov-file#readme) - Dockerfile Python UV
- [docker-test-action](https://github.com/smashedr/docker-test-action?tab=readme-ov-file#readme) - Docker Image Python

Note: The `docker-test-action` builds, runs and pushes images to [GitHub Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry).

Expand Down
Loading