https://github.com/enrico204/portainer-git-redeploy
A very small utility for triggering the Git re-deploy for stacks in Portainer via CLI.
https://github.com/enrico204/portainer-git-redeploy
devops git portainer portainer-api
Last synced: 8 months ago
JSON representation
A very small utility for triggering the Git re-deploy for stacks in Portainer via CLI.
- Host: GitHub
- URL: https://github.com/enrico204/portainer-git-redeploy
- Owner: Enrico204
- License: mit
- Created: 2022-09-01T11:13:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T23:00:38.000Z (about 3 years ago)
- Last Synced: 2025-08-02T02:59:56.892Z (8 months ago)
- Topics: devops, git, portainer, portainer-api
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Portainer Git Redeploy
A very small utility for triggering the Git re-deploy for stacks in Portainer
via CLI. It was meant to be used in CD pipelines.
## Usage (OCI/docker container)
A container image is available on Docker Hub: `docker.io/enrico204/portainer-git-redeploy`
## Usage (executable)
Example with environment variables:
```shell
$ export PORTAINER_STACK_ID=1
$ export PORTAINER_URL=https://portainer:9443
$ export PORTAINER_ACCESS_TOKEN=abcdef
$ portainer-git-redeploy
```
Example using CLI options (**note that writing your access token to the CLI is a BAD IDEA**):
```shell
$ portainer-git-redeploy -url https://portainer:9443 -stack-id 1 -access-token abcdef
```
To use a custom certificate file, use `PORTAINER_SSL_CERT_FILE` to appending a
certificate to the system CA store, or `SSL_CERT_FILE` for replacing the whole
CA store:
```shell
$ export PORTAINER_SSL_CERT_FILE=~/certificate.pem
$ portainer-git-redeploy -url https://portainer:9443 -stack-id 1 -access-token abcdef
```
# LICENSE
See [LICENSE](LICENSE).