2021-03-10 07:19:17 +00:00
|
|
|
on: [ push, pull_request ]
|
2019-09-15 07:32:43 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-03-10 07:19:17 +00:00
|
|
|
deployment_keys_demo:
|
2020-01-14 09:21:11 +00:00
|
|
|
strategy:
|
2021-03-10 07:19:17 +00:00
|
|
|
fail-fast: false
|
2020-01-14 09:21:11 +00:00
|
|
|
matrix:
|
2021-03-10 07:19:17 +00:00
|
|
|
os: [ ubuntu-latest, macOS-latest, windows-latest ]
|
2020-01-14 09:21:11 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2022-10-25 15:23:31 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-02-17 12:30:49 +00:00
|
|
|
- name: Setup first key
|
2021-03-10 07:19:17 +00:00
|
|
|
uses: ./
|
|
|
|
with:
|
2023-02-17 12:30:49 +00:00
|
|
|
ssh-private-key: ${{ secrets.MPDUDE_TEST_1_DEPLOY_KEY }}
|
|
|
|
- name: Setup second key
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
ssh-private-key: ${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }}
|
2021-03-10 07:19:17 +00:00
|
|
|
- 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
|
2021-02-13 20:02:34 +00:00
|
|
|
|
|
|
|
docker_demo:
|
2021-03-10 07:19:17 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-02-13 20:02:34 +00:00
|
|
|
container:
|
|
|
|
image: ubuntu:latest
|
|
|
|
steps:
|
2022-10-25 15:23:31 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-03-10 07:19:17 +00:00
|
|
|
- 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
|