https://github.com/smashedr/portainer-swarm-deploy-action
Portainer Swarm Deploy Action
https://github.com/smashedr/portainer-swarm-deploy-action
Last synced: 12 months ago
JSON representation
Portainer Swarm Deploy Action
- Host: GitHub
- URL: https://github.com/smashedr/portainer-swarm-deploy-action
- Owner: smashedr
- Created: 2024-07-15T20:17:31.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T20:46:53.000Z (almost 2 years ago)
- Last Synced: 2025-02-25T08:15:34.571Z (over 1 year ago)
- Language: JavaScript
- Size: 325 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/cssnr/portainer-swarm-deploy-action/actions/workflows/tags.yaml)
[](https://cssnr.github.io/)
[](https://discord.gg/wXy6m2X8wY)
# Portainer Swarm Deploy Action
Deploy a GitHub Repository Stack to Portainer or Update if Stack Exists.
* [Inputs](#Inputs)
* [Simple Example](#Simple-Example)
* [Known Issues](#Known-Issues)
* [Support](#Support)
> [!NOTE]
> Please submit
> a [Feature Request](https://github.com/cssnr/portainer-swarm-deploy-action/discussions/categories/feature-requests)
> for new features or [Open an Issue](https://github.com/cssnr/portainer-swarm-deploy-action/issues) if you find any bugs.
## Inputs
| input | required | default | description |
|----------|----------|-------------------|-----------------------|
| url | Yes | - | Portainer URL |
| token | Yes | - | Portainer Token |
| endpoint | No | `endpoints[0].Id` | Portainer Endpoint ID |
| name | Yes | - | Stack Name |
| file | No | `compose.yaml` | Compose File |
Note: Currently testing so use: `smashedr/portainer-swarm-deploy-action@master`
```yaml
- name: "Parse Issue"
id: issue
uses: cssnr/portainer-swarm-deploy-action@v1
with:
url: https://portainer.example.com:9443
token: ${{ secrets.PORTAINER_TOKEN }}
endpoint: 2
name: stack-name
file: docker-compose.yaml
```
## Known Issues
- Only works for repository stacks but can be expanded to support other types.
This is a very simple action, for more details see
[src/index.js](src%2Findex.js) and [src/portainer.js](src%2Fportainer.js).
# Support
For general help or to request a feature, see:
- Q&A Discussion: https://github.com/cssnr/portainer-swarm-deploy-action/discussions/categories/q-a
- Request a Feature: https://github.com/cssnr/portainer-swarm-deploy-action/discussions/categories/feature-requests
If you are experiencing an issue/bug or getting unexpected results, you can:
- Report an Issue: https://github.com/cssnr/portainer-swarm-deploy-action/issues
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
- Provide General Feedback: [https://cssnr.github.io/feedback/](https://cssnr.github.io/feedback/?app=Parse%20Issue%20Form)