GithubHelp home page GithubHelp logo

amirmarmul / docker-context-ssh-action Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 19 KB

Github Action for creating docker context over SSH authentication.

devops docker github-actions docker-context ssh-authentication

docker-context-ssh-action's Introduction

GitHub release GitHub marketplace

About

Github Action for creating docker context over SSH authentication.

Input variables

See action.yml for more detailed information.

  • ssh-host - ssh host
  • ssh-port - ssh port, default 22
  • ssh-username - ssh username
  • ssh-private-key - content of ssh private key. ex raw content of ~/.ssh/id_rsa
  • ssh-passphrase - passphrase for ssh private key. no default.
  • ssh-socket - ssh socket, default /tmp/ssh-auth.sock
  • context-name - name of docker context. default: remote
  • context-use - indicate which this context is set as docker current context. default: false

Usage

on: [push]

jobs:
  docker_context_over_ssh_job: 
    runs-on: ubuntu-latest
    steps:
      - name: Set up docker context over SSH authentication
        uses: amirmarmul/docker-context-ssh-action@v1
        with:
          ssh-host: ${{ secrets.SSH_HOST }}
          ssh-username: ${{ secrets.SSH_USERNAME }}
          ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
          ssh-passphrase: ${{ secrets.SSH_PASSPHRASE }}
      
      - name: Inspect docker context  
        run: docker context ls -q

docker-context-ssh-action's People

Contributors

amirmarmul avatar sdolemelipone avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

sdolemelipone

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.