Skip to content

Commit 0bbd533

Browse files
authored
Merge pull request #178 from shimataro/develop
version 2.2.0
2 parents 6f350ca + 8053198 commit 0bbd533

31 files changed

+2078
-1861
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github:
2+
- shimataro
3+
custom:
4+
- "https://www.paypal.me/shimataro"

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ name: Build
44

55
on:
66
- push
7-
- pull_request
87

98
jobs:
109
build:
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
2+
3+
name: Docker container (CentOS)
4+
5+
on:
6+
- push
7+
8+
jobs:
9+
ssh-pem:
10+
name: Connect to github.com (PEM format)
11+
runs-on: ${{ matrix.os }}
12+
container: ${{ matrix.container }}
13+
strategy:
14+
matrix:
15+
os:
16+
- ubuntu-16.04
17+
- ubuntu-18.04
18+
- ubuntu-20.04
19+
container:
20+
- centos:7
21+
- centos:8
22+
fail-fast: false
23+
steps:
24+
- name: Install packages
25+
run: |
26+
yum install -y git openssh-clients
27+
- name: Checkout source codes
28+
uses: actions/checkout@v2
29+
- name: Install SSH key
30+
uses: ./.
31+
with:
32+
key: ${{ secrets.SSH_KEY_PEM }}
33+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
34+
- name: print created files
35+
run: ls -l /root/.ssh
36+
- name: git clone through SSH
37+
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
38+
ssh-pkcs8:
39+
name: Connect to github.com (PKCS8 format)
40+
runs-on: ${{ matrix.os }}
41+
container: ${{ matrix.container }}
42+
strategy:
43+
matrix:
44+
os:
45+
- ubuntu-16.04
46+
- ubuntu-18.04
47+
- ubuntu-20.04
48+
container:
49+
- centos:7
50+
- centos:8
51+
fail-fast: false
52+
steps:
53+
- name: Install packages
54+
run: |
55+
yum install -y git openssh-clients
56+
- name: Checkout source codes
57+
uses: actions/checkout@v2
58+
- name: Install SSH key
59+
uses: ./.
60+
with:
61+
key: ${{ secrets.SSH_KEY_PKCS8 }}
62+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
63+
- name: print created files
64+
run: ls -l /root/.ssh
65+
- name: git clone through SSH
66+
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
67+
ssh-rfc4716:
68+
name: Connect to github.com (RFC4716 format)
69+
runs-on: ${{ matrix.os }}
70+
container: ${{ matrix.container }}
71+
strategy:
72+
matrix:
73+
os:
74+
- ubuntu-16.04
75+
- ubuntu-18.04
76+
- ubuntu-20.04
77+
container:
78+
- centos:7
79+
- centos:8
80+
fail-fast: false
81+
steps:
82+
- name: Install packages
83+
run: |
84+
yum install -y git openssh-clients
85+
- name: Checkout source codes
86+
uses: actions/checkout@v2
87+
- name: Install SSH key
88+
uses: ./.
89+
with:
90+
key: ${{ secrets.SSH_KEY_RFC4716 }}
91+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
92+
- name: print created files
93+
run: ls -l /root/.ssh
94+
- name: git clone through SSH
95+
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
2+
3+
name: Docker container (Ubuntu)
4+
5+
on:
6+
- push
7+
8+
jobs:
9+
ssh-pem:
10+
name: Connect to github.com (PEM format)
11+
runs-on: ${{ matrix.os }}
12+
container: ${{ matrix.container }}
13+
strategy:
14+
matrix:
15+
os:
16+
- ubuntu-16.04
17+
- ubuntu-18.04
18+
- ubuntu-20.04
19+
container:
20+
- ubuntu:16.04
21+
- ubuntu:18.04
22+
- ubuntu:20.04
23+
fail-fast: false
24+
steps:
25+
- name: Install packages
26+
run: |
27+
apt update
28+
apt -y install openssh-client git
29+
- name: Checkout source codes
30+
uses: actions/checkout@v2
31+
- name: Install SSH key
32+
uses: ./.
33+
with:
34+
key: ${{ secrets.SSH_KEY_PEM }}
35+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
36+
- name: print created files
37+
run: ls -l /root/.ssh
38+
- name: git clone through SSH
39+
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
40+
ssh-pkcs8:
41+
name: Connect to github.com (PKCS8 format)
42+
runs-on: ${{ matrix.os }}
43+
container: ${{ matrix.container }}
44+
strategy:
45+
matrix:
46+
os:
47+
- ubuntu-16.04
48+
- ubuntu-18.04
49+
- ubuntu-20.04
50+
container:
51+
- ubuntu:16.04
52+
- ubuntu:18.04
53+
- ubuntu:20.04
54+
fail-fast: false
55+
steps:
56+
- name: Install packages
57+
run: |
58+
apt update
59+
apt -y install openssh-client git
60+
- name: Checkout source codes
61+
uses: actions/checkout@v2
62+
- name: Install SSH key
63+
uses: ./.
64+
with:
65+
key: ${{ secrets.SSH_KEY_PKCS8 }}
66+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
67+
- name: print created files
68+
run: ls -l /root/.ssh
69+
- name: git clone through SSH
70+
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
71+
ssh-rfc4716:
72+
name: Connect to github.com (RFC4716 format)
73+
runs-on: ${{ matrix.os }}
74+
container: ${{ matrix.container }}
75+
strategy:
76+
matrix:
77+
os:
78+
- ubuntu-16.04
79+
- ubuntu-18.04
80+
- ubuntu-20.04
81+
container:
82+
- ubuntu:16.04
83+
- ubuntu:18.04
84+
- ubuntu:20.04
85+
fail-fast: false
86+
steps:
87+
- name: Install packages
88+
run: |
89+
apt update
90+
apt -y install openssh-client git
91+
- name: Checkout source codes
92+
uses: actions/checkout@v2
93+
- name: Install SSH key
94+
uses: ./.
95+
with:
96+
key: ${{ secrets.SSH_KEY_RFC4716 }}
97+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
98+
- name: print created files
99+
run: ls -l /root/.ssh
100+
- name: git clone through SSH
101+
run: git clone git@github.com:shimataro/ssh-key-action.git tmp

.github/workflows/verify-on-macos-1015.yml

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,48 @@ name: macOS Catalina
44

55
on:
66
- push
7-
- pull_request
87

98
jobs:
10-
ssh:
11-
name: Connect to github.com
9+
ssh-pem:
10+
name: Connect to github.com (PEM format)
1211
runs-on: macos-10.15
1312
steps:
1413
- name: Checkout source codes
1514
uses: actions/checkout@v2
1615
- name: Install SSH key
1716
uses: ./.
1817
with:
19-
key: ${{ secrets.SSH_KEY }}
18+
key: ${{ secrets.SSH_KEY_PEM }}
19+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
20+
- name: print created files
21+
run: ls -l ~/.ssh
22+
- name: git clone through SSH
23+
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
24+
ssh-pkcs8:
25+
name: Connect to github.com (PKCS8 format)
26+
runs-on: macos-10.15
27+
steps:
28+
- name: Checkout source codes
29+
uses: actions/checkout@v2
30+
- name: Install SSH key
31+
uses: ./.
32+
with:
33+
key: ${{ secrets.SSH_KEY_PKCS8 }}
34+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
35+
- name: print created files
36+
run: ls -l ~/.ssh
37+
- name: git clone through SSH
38+
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
39+
ssh-rfc4716:
40+
name: Connect to github.com (RFC4716 format)
41+
runs-on: macos-10.15
42+
steps:
43+
- name: Checkout source codes
44+
uses: actions/checkout@v2
45+
- name: Install SSH key
46+
uses: ./.
47+
with:
48+
key: ${{ secrets.SSH_KEY_RFC4716 }}
2049
known_hosts: ${{ secrets.KNOWN_HOSTS }}
2150
- name: print created files
2251
run: ls -l ~/.ssh
@@ -31,7 +60,7 @@ jobs:
3160
- name: Install SSH key
3261
uses: ./.
3362
with:
34-
key: ${{ secrets.SSH_KEY }}
63+
key: ${{ secrets.SSH_KEY_PEM }}
3564
known_hosts: ${{ secrets.KNOWN_HOSTS }}
3665
name: ssh_key_name # optional
3766
config: | # optional

.github/workflows/verify-on-ubuntu-1604.yml

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,48 @@ name: Ubuntu 16.04
44

55
on:
66
- push
7-
- pull_request
87

98
jobs:
10-
ssh:
11-
name: Connect to github.com
9+
ssh-pem:
10+
name: Connect to github.com (PEM format)
1211
runs-on: ubuntu-16.04
1312
steps:
1413
- name: Checkout source codes
1514
uses: actions/checkout@v2
1615
- name: Install SSH key
1716
uses: ./.
1817
with:
19-
key: ${{ secrets.SSH_KEY }}
18+
key: ${{ secrets.SSH_KEY_PEM }}
19+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
20+
- name: print created files
21+
run: ls -l ~/.ssh
22+
- name: git clone through SSH
23+
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
24+
ssh-pkcs8:
25+
name: Connect to github.com (PKCS8 format)
26+
runs-on: ubuntu-16.04
27+
steps:
28+
- name: Checkout source codes
29+
uses: actions/checkout@v2
30+
- name: Install SSH key
31+
uses: ./.
32+
with:
33+
key: ${{ secrets.SSH_KEY_PKCS8 }}
34+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
35+
- name: print created files
36+
run: ls -l ~/.ssh
37+
- name: git clone through SSH
38+
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
39+
ssh-rfc4716:
40+
name: Connect to github.com (RFC4716 format)
41+
runs-on: ubuntu-16.04
42+
steps:
43+
- name: Checkout source codes
44+
uses: actions/checkout@v2
45+
- name: Install SSH key
46+
uses: ./.
47+
with:
48+
key: ${{ secrets.SSH_KEY_RFC4716 }}
2049
known_hosts: ${{ secrets.KNOWN_HOSTS }}
2150
- name: print created files
2251
run: ls -l ~/.ssh
@@ -31,7 +60,7 @@ jobs:
3160
- name: Install SSH key
3261
uses: ./.
3362
with:
34-
key: ${{ secrets.SSH_KEY }}
63+
key: ${{ secrets.SSH_KEY_PEM }}
3564
known_hosts: ${{ secrets.KNOWN_HOSTS }}
3665
name: ssh_key_name # optional
3766
config: | # optional

.github/workflows/verify-on-ubuntu-1804.yml

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,48 @@ name: Ubuntu 18.04
44

55
on:
66
- push
7-
- pull_request
87

98
jobs:
10-
ssh:
11-
name: Connect to github.com
9+
ssh-pem:
10+
name: Connect to github.com (PEM format)
1211
runs-on: ubuntu-18.04
1312
steps:
1413
- name: Checkout source codes
1514
uses: actions/checkout@v2
1615
- name: Install SSH key
1716
uses: ./.
1817
with:
19-
key: ${{ secrets.SSH_KEY }}
18+
key: ${{ secrets.SSH_KEY_PEM }}
19+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
20+
- name: print created files
21+
run: ls -l ~/.ssh
22+
- name: git clone through SSH
23+
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
24+
ssh-pkcs8:
25+
name: Connect to github.com (PKCS8 format)
26+
runs-on: ubuntu-18.04
27+
steps:
28+
- name: Checkout source codes
29+
uses: actions/checkout@v2
30+
- name: Install SSH key
31+
uses: ./.
32+
with:
33+
key: ${{ secrets.SSH_KEY_PKCS8 }}
34+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
35+
- name: print created files
36+
run: ls -l ~/.ssh
37+
- name: git clone through SSH
38+
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
39+
ssh-rfc4716:
40+
name: Connect to github.com (RFC4716 format)
41+
runs-on: ubuntu-18.04
42+
steps:
43+
- name: Checkout source codes
44+
uses: actions/checkout@v2
45+
- name: Install SSH key
46+
uses: ./.
47+
with:
48+
key: ${{ secrets.SSH_KEY_RFC4716 }}
2049
known_hosts: ${{ secrets.KNOWN_HOSTS }}
2150
- name: print created files
2251
run: ls -l ~/.ssh
@@ -31,7 +60,7 @@ jobs:
3160
- name: Install SSH key
3261
uses: ./.
3362
with:
34-
key: ${{ secrets.SSH_KEY }}
63+
key: ${{ secrets.SSH_KEY_PEM }}
3564
known_hosts: ${{ secrets.KNOWN_HOSTS }}
3665
name: ssh_key_name # optional
3766
config: | # optional

0 commit comments

Comments
 (0)