Swiftpack.co -  doozMen/ssh-install as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
doozMen/ssh-install
simplifies ssh install on a clean machine from an existing ssh key (like on a ci)
.package(url: "https://github.com/doozMen/ssh-install.git", from: "0.0.6")

ssh-install

Swift

    .package(url: "https://github.com/doozMen/ssh-install.git", .upToNextMajor(from: "0.0.1"))

useage

  1. clone repo
  2. swift run ssh-install -h

use in github actions

You can add the code below if you added a folder with a copy or simular content of

The secrets should have been added to repo settings secrets. more info

  • PRIVATE_KEY
  • PUBLIC_KEY
  • SSH_CONFIG
steps:
    - name: cache SPM buildtools
        uses: actions/cache@v2.1.6
        with:
            path: BuildTools/.build
            key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
            restore-keys: |
            ${{ runner.os }}-spm-
    - name: "build BuildTools"
          run: swift build -c release --package-path BuildTools
    - name: "Set up SSH agent"
          run: |
            echo "${{secrets.PRIVATE_KEY }}" >> ~/privateKey
            echo "${{secrets.PUBLIC_KEY }}" >> ~/publicKey
            echo "${{secrets.SSH_CONFIG }}" >> ~/config
            swift run  --skip-build -c release --package-path BuildTools ssh-install ~/privateKey ~/publicKey ~/config

GitHub

link
Stars: 0
Last commit: 4 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Basic support
5 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API