2019-09-15 07:32:43 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2020-01-14 09:21:11 +00:00
|
|
|
single_key_demo:
|
2019-09-15 07:32:43 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-02-13 20:02:34 +00:00
|
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
2019-09-15 07:32:43 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2021-02-19 13:37:34 +00:00
|
|
|
- uses: actions/checkout@v2
|
2019-09-15 07:32:43 +00:00
|
|
|
- name: Setup key
|
|
|
|
uses: ./
|
|
|
|
with:
|
2020-01-14 09:21:11 +00:00
|
|
|
ssh-private-key: |
|
|
|
|
${{ secrets.DEMO_KEY }}
|
|
|
|
${{ secrets.DEMO_KEY_2 }}
|
2019-09-15 07:32:43 +00:00
|
|
|
|
2020-01-14 09:21:11 +00:00
|
|
|
multiple_keys_demo:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macOS-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2021-02-19 13:37:34 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-01-14 09:21:11 +00:00
|
|
|
- name: Setup key
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
ssh-private-key: ${{ secrets.DEMO_KEY }}
|
2021-02-13 20:02:34 +00:00
|
|
|
|
|
|
|
docker_demo:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: ubuntu:latest
|
|
|
|
steps:
|
2021-02-19 13:37:34 +00:00
|
|
|
- uses: actions/checkout@v2
|
2021-02-13 20:02:34 +00:00
|
|
|
- run: apt update && apt install -y openssh-client
|
|
|
|
- name: Setup key
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
ssh-private-key: |
|
|
|
|
${{ secrets.DEMO_KEY }}
|
|
|
|
${{ secrets.DEMO_KEY_2 }}
|
2021-02-19 13:37:34 +00:00
|
|
|
|
|
|
|
deployment_keys_demo:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- 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
|