mirror of
https://github.com/webfactory/ssh-agent.git
synced 2024-11-24 18:08:00 +00:00
51 lines
2.3 KiB
YAML
51 lines
2.3 KiB
YAML
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
deployment_keys_demo:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ ubuntu-latest, macOS-latest, windows-latest ]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup key
|
|
uses: ./
|
|
with:
|
|
ssh-private-key: |
|
|
${{ secrets.MPDUDE_TEST_1_DEPLOY_KEY }}
|
|
${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }}
|
|
- run: |
|
|
git clone https://github.com/mpdude/test-1.git test-1-http
|
|
git clone git@github.com:mpdude/test-1.git test-1-git
|
|
git clone ssh://git@github.com/mpdude/test-1.git test-1-git-ssh
|
|
git clone https://github.com/mpdude/test-2.git test-2-http
|
|
git clone git@github.com:mpdude/test-2.git test-2-git
|
|
git clone ssh://git@github.com/mpdude/test-2.git test-2-git-ssh
|
|
|
|
docker_demo:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ubuntu:latest
|
|
steps:
|
|
- name: "Add GitHub to the SSH known hosts file"
|
|
run: |
|
|
mkdir -p -m 0700 /home/runner/.ssh
|
|
curl --silent https://api.github.com/meta | jq --raw-output '"github.com "+.ssh_keys[]' >> /home/runner/.ssh/known_hosts
|
|
chmod 600 /home/runner/.ssh/known_hosts
|
|
- uses: actions/checkout@v3
|
|
- run: apt update && apt install -y openssh-client git
|
|
- name: Setup key
|
|
uses: ./
|
|
with:
|
|
ssh-private-key: |
|
|
${{ secrets.MPDUDE_TEST_1_DEPLOY_KEY }}
|
|
${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }}
|
|
- run: |
|
|
git clone https://github.com/mpdude/test-1.git test-1-http
|
|
git clone git@github.com:mpdude/test-1.git test-1-git
|
|
git clone ssh://git@github.com/mpdude/test-1.git test-1-git-ssh
|
|
git clone https://github.com/mpdude/test-2.git test-2-http
|
|
git clone git@github.com:mpdude/test-2.git test-2-git
|
|
git clone ssh://git@github.com/mpdude/test-2.git test-2-git-ssh
|
|
|