Github Action for creating docker context over SSH authentication.
See action.yml for more detailed information.
ssh-host- ssh hostssh-port- ssh port, default 22ssh-username- ssh usernamessh-private-key- content of ssh private key. ex raw content of ~/.ssh/id_rsassh-passphrase- passphrase for ssh private key. no default.ssh-socket- ssh socket, default /tmp/ssh-auth.sockcontext-name- name of docker context. default: remotecontext-use- indicate which this context is set as docker current context. default: false
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