Giter Site home page Giter Site logo

enrico204 / portainer-git-redeploy Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 7 KB

A very small utility for triggering the Git re-deploy for stacks in Portainer via CLI.

License: MIT License

Go 74.72% Dockerfile 8.99% Makefile 16.29%
devops git portainer portainer-api

portainer-git-redeploy's Introduction

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:

$ 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):

$ 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:

$ export PORTAINER_SSL_CERT_FILE=~/certificate.pem
$ portainer-git-redeploy -url https://portainer:9443 -stack-id 1 -access-token abcdef

LICENSE

See LICENSE.

portainer-git-redeploy's People

Contributors

enrico204 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.