From 5183b434118ace7ce540744efaf2d088e3c8c50d Mon Sep 17 00:00:00 2001 From: Shane <6071159+smashedr@users.noreply.github.com> Date: Thu, 27 Nov 2025 09:02:36 -0800 Subject: [PATCH 1/3] Update Workflows --- .github/workflows/labeler.yaml | 8 ++++-- .github/workflows/lint.yaml | 22 +++++++++++---- .github/workflows/mirror.yaml | 4 +-- .github/workflows/pull.yaml | 50 ++++++++++++++++++++++++++++++++++ .github/workflows/release.yaml | 12 ++++++-- .github/workflows/tags.yaml | 2 +- README.md | 29 +++++++++++--------- 7 files changed, 101 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/pull.yaml diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index eb36453..6f280f5 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -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" @@ -15,7 +19,7 @@ jobs: steps: - name: "Checkout Configs" - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: repository: cssnr/configs ref: master @@ -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 diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 575127e..b880790 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -2,9 +2,9 @@ name: "Lint" on: workflow_dispatch: - pull_request: push: branches: [master] + pull_request: concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -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 @@ -37,7 +47,7 @@ jobs: with: scandir: src - - name: "Prettier" + - name: "prettier" if: ${{ !cancelled() }} run: | echo "::group::Install" @@ -45,7 +55,7 @@ jobs: echo "::endgroup::" npx prettier --check . - - name: "Yamllint" + - name: "yamllint" if: ${{ !cancelled() }} env: CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}" @@ -55,7 +65,7 @@ jobs: echo "::endgroup::" yamllint -d '${{ env.CONFIG }}' . - - name: "Actionlint" + - name: "actionlint" if: ${{ !cancelled() }} run: | echo "::group::Download" @@ -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 diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml index 00bdae6..6e90954 100644 --- a/.github/workflows/mirror.yaml +++ b/.github/workflows/mirror.yaml @@ -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 diff --git a/.github/workflows/pull.yaml b/.github/workflows/pull.yaml new file mode 100644 index 0000000..567450e --- /dev/null +++ b/.github/workflows/pull.yaml @@ -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/.*" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e4c13b4..03c7cc3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 @@ -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 }} diff --git a/.github/workflows/tags.yaml b/.github/workflows/tags.yaml index 38b5c74..a2ee80c 100644 --- a/.github/workflows/tags.yaml +++ b/.github/workflows/tags.yaml @@ -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 }} diff --git a/README.md b/README.md index 24f0a41..2f98afe 100644 --- a/README.md +++ b/README.md @@ -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) @@ -19,6 +19,9 @@ # Docker Stack Deploy Action + +Docker Stack Deploy + - [Features](#Features) - [Inputs](#Inputs) - [Examples](#Examples) @@ -26,10 +29,6 @@ - [Support](#Support) - [Contributing](#Contributing) -

-Docker Stack Deploy -

- 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. @@ -590,25 +589,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) @@ -627,6 +628,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. @@ -641,10 +643,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). From fc53e6e50febd0f930926c6ba6626d54cb1a1345 Mon Sep 17 00:00:00 2001 From: Shane <6071159+smashedr@users.noreply.github.com> Date: Thu, 27 Nov 2025 09:07:33 -0800 Subject: [PATCH 2/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2f98afe..6693fe2 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,8 @@ _Portainer Users: You can deploy directly to Portainer with: [cssnr/portainer-st - Allows setting custom arguments for the deployment command. - **View more the [Features](https://docker-deploy.cssnr.com/guides/features) on the website.** +You can also view an [Action Comparison](https://docker-deploy.cssnr.com/guides/resources#action-comparison) of over 50 actions published on the marketplace. + Don't see your feature here? Please help by submitting a [Feature Request](https://github.com/cssnr/stack-deploy-action/discussions/categories/feature-requests). ## Inputs From 5dcbb0e947121b6c498275b0da488e402347c422 Mon Sep 17 00:00:00 2001 From: Shane <6071159+smashedr@users.noreply.github.com> Date: Thu, 27 Nov 2025 09:15:27 -0800 Subject: [PATCH 3/3] Fix Context Example --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6693fe2..18f7464 100644 --- a/README.md +++ b/README.md @@ -70,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. @@ -90,10 +90,10 @@ _Portainer Users: You can deploy directly to Portainer with: [cssnr/portainer-st - Allows setting custom arguments for the deployment command. - **View more the [Features](https://docker-deploy.cssnr.com/guides/features) on the website.** -You can also view an [Action Comparison](https://docker-deploy.cssnr.com/guides/resources#action-comparison) of over 50 actions published on the marketplace. - 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]