1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

test on Docker containers

This commit is contained in:
shimataro 2021-03-08 20:15:33 +09:00
parent 17b57f50c5
commit 1b4f5304d1
No known key found for this signature in database
GPG key ID: BE92C05736911A9D
2 changed files with 58 additions and 0 deletions

View file

@ -292,3 +292,31 @@ jobs:
run: ls -l /root/.ssh run: ls -l /root/.ssh
- name: git clone through SSH - name: git clone through SSH
run: git clone git@github.com:shimataro/ssh-key-action.git tmp run: git clone git@github.com:shimataro/ssh-key-action.git tmp
no_known_hosts:
name: no known_hosts file
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-16.04
- ubuntu-18.04
- ubuntu-20.04
container:
- centos:7
- centos:8
steps:
- name: Install packages
run: |
yum install -y git openssh-clients
- name: Checkout source codes
uses: actions/checkout@v2
- name: Install SSH key
uses: ./.
with:
key: ${{ secrets.SSH_KEY_PEM }}
no_known_hosts: true
- name: print created files
run: ls -l /root/.ssh

View file

@ -310,3 +310,33 @@ jobs:
run: ls -l /root/.ssh run: ls -l /root/.ssh
- name: git clone through SSH - name: git clone through SSH
run: git clone git@github.com:shimataro/ssh-key-action.git tmp run: git clone git@github.com:shimataro/ssh-key-action.git tmp
no_known_hosts:
name: no known_hosts file
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-16.04
- ubuntu-18.04
- ubuntu-20.04
container:
- ubuntu:16.04
- ubuntu:18.04
- ubuntu:20.04
steps:
- name: Install packages
run: |
apt update
apt -y install openssh-client git
- name: Checkout source codes
uses: actions/checkout@v2
- name: Install SSH key
uses: ./.
with:
key: ${{ secrets.SSH_KEY_PEM }}
no_known_hosts: true
- name: print created files
run: ls -l /root/.ssh