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

use matrix for Docker container

This commit is contained in:
shimataro 2021-02-23 10:29:05 +09:00
parent 5b144c9cec
commit 7e10b73d7c
No known key found for this signature in database
GPG key ID: BE92C05736911A9D

View file

@ -1,6 +1,6 @@
# https://help.github.com/en/articles/workflow-syntax-for-github-actions # https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Docker container on Ubuntu 20.04 name: Docker container
on: on:
- push - push
@ -8,8 +8,19 @@ on:
jobs: jobs:
ssh-pem: ssh-pem:
name: Connect to github.com (PEM format) name: Connect to github.com (PEM format)
runs-on: ubuntu-20.04 runs-on: ${{ matrix.os }}
container: ubuntu:20.04 container: ${{ matrix.container }}
strategy:
matrix:
os:
- ubuntu-16.04
- ubuntu-18.04
- ubuntu-20.04
container:
- ubuntu:16.04
- ubuntu:18.04
- ubuntu:20.04
fail-fast: false
steps: steps:
- name: Install packages - name: Install packages
run: | run: |
@ -28,8 +39,19 @@ jobs:
run: git clone git@github.com:shimataro/ssh-key-action.git tmp run: git clone git@github.com:shimataro/ssh-key-action.git tmp
ssh-pkcs8: ssh-pkcs8:
name: Connect to github.com (PKCS8 format) name: Connect to github.com (PKCS8 format)
runs-on: ubuntu-20.04 runs-on: ${{ matrix.os }}
container: ubuntu:20.04 container: ${{ matrix.container }}
strategy:
matrix:
os:
- ubuntu-16.04
- ubuntu-18.04
- ubuntu-20.04
container:
- ubuntu:16.04
- ubuntu:18.04
- ubuntu:20.04
fail-fast: false
steps: steps:
- name: Install packages - name: Install packages
run: | run: |
@ -48,8 +70,19 @@ jobs:
run: git clone git@github.com:shimataro/ssh-key-action.git tmp run: git clone git@github.com:shimataro/ssh-key-action.git tmp
ssh-rfc4716: ssh-rfc4716:
name: Connect to github.com (RFC4716 format) name: Connect to github.com (RFC4716 format)
runs-on: ubuntu-20.04 runs-on: ${{ matrix.os }}
container: ubuntu:20.04 container: ${{ matrix.container }}
strategy:
matrix:
os:
- ubuntu-16.04
- ubuntu-18.04
- ubuntu-20.04
container:
- ubuntu:16.04
- ubuntu:18.04
- ubuntu:20.04
fail-fast: false
steps: steps:
- name: Install packages - name: Install packages
run: | run: |