Giter Club home page Giter Club logo

portainer-stack-deploy's Introduction

portainer-deploy

This action deploy image by portainer

Inputs


serverurl

required portainer server url. like this: http://xxx.com:9000
portainer服务器公网地址 需要公网能够访问

username

required portainer username
portainer 面板登录所用的用户名

password

required portainer password
portainer 面板登录所用的密码

endpointId

portainer endpoint id,default 1, localhost is 1
portainer终结点id,默认是1,即第一个,一般为localhost

stackname

required name of stack
服务栈的名称,会在stacks列表里显示

registry

address of registry, like: myregistry.example.com (leave empty for Docker Hub)

imagename

required name of pull image, like: mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine
将会进行拉取镜像的镜像名

docker_compose

content of docker-compose.yml. ps: portainer just support version: "2"
docker-compose.yml的内容 注意:portainer目前仅支持version: "2"
like this:

docker_compose: |
  version: "2"
  services:
  dotnet_test:
    image:  mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine
    container_name: dotnet_runtime

leave empty for use the current docker-compose file content

Example usage

The following will pull image mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine, and deploy docker-compose to portainer.

- name: deploy to portainer
  uses: LGinC/portainer-stack-deploy@master
  with: 
    serverurl: http://xxx.com:9000
    username: ${{ secrets.PORTAINER_USERNAME }}
    password: ${{ secrets.PORTAINER_PASSWORD }}
    endpointId: 1
    stackname: dotnet_test
    registry: mcr.microsoft.com
    imagename: dotnet/core/aspnet:3.1-alpine
    docker_compose: |
      version: "2"
      services:
        dotnet_test:
          image:  mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine
          container_name: dotnet_runtime       

portainer-stack-deploy's People

Contributors

lginc avatar roromix avatar wg-daniel 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.