Swiftpack.co - doozMen/ssh-install as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by doozMen.
doozMen/ssh-install 0.0.7
simplifies ssh install on a clean machine from an existing ssh key (like on a ci)
⭐️ 0
🕓 2 years ago
macOS
.package(url: "https://github.com/doozMen/ssh-install.git", from: "0.0.7")

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/[email protected]
        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: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Basic support
2 years ago

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