mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
integrate reusable-verify-container with reusable-verify
This commit is contained in:
parent
08d9101dc8
commit
321f3709f5
5 changed files with 62 additions and 344 deletions
294
.github/workflows/reusable-verify-container.yml
vendored
294
.github/workflows/reusable-verify-container.yml
vendored
|
@ -1,294 +0,0 @@
|
||||||
# reusable workflow: Verify container
|
|
||||||
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
os:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
description: "'runs-on'"
|
|
||||||
container:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
description: container name
|
|
||||||
package_installation_command:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
description: package installation command
|
|
||||||
secrets:
|
|
||||||
SSH_KEY_PEM:
|
|
||||||
required: true
|
|
||||||
description: SSH private key (PEM format)
|
|
||||||
SSH_KEY_PKCS8:
|
|
||||||
required: true
|
|
||||||
description: SSH private key (PKCS8 format)
|
|
||||||
SSH_KEY_RFC4716:
|
|
||||||
required: true
|
|
||||||
description: SSH private key (RFC4716 format)
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
ssh-pem:
|
|
||||||
name: Connect to github.com (PEM format)
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
container: ${{ inputs.container }}
|
|
||||||
steps:
|
|
||||||
- name: Install packages
|
|
||||||
run: ${{ inputs.package_installation_command }}
|
|
||||||
if: ${{ inputs.package_installation_command != '' }}
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
|
||||||
known_hosts: unnecessary
|
|
||||||
- name: print created files
|
|
||||||
run: ls /root/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
|
||||||
|
|
||||||
ssh-pem-bitbucket:
|
|
||||||
name: Connect to bitbucket.org (PEM format)
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
container: ${{ inputs.container }}
|
|
||||||
steps:
|
|
||||||
- name: Install packages
|
|
||||||
run: ${{ inputs.package_installation_command }}
|
|
||||||
if: ${{ inputs.package_installation_command != '' }}
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
|
||||||
known_hosts: |
|
|
||||||
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
|
|
||||||
- name: print created files
|
|
||||||
run: ls /root/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@bitbucket.org:shimataro999/ssh-test.git tmp
|
|
||||||
|
|
||||||
ssh-pkcs8:
|
|
||||||
name: Connect to github.com (PKCS8 format)
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
container: ${{ inputs.container }}
|
|
||||||
steps:
|
|
||||||
- name: Install packages
|
|
||||||
run: ${{ inputs.package_installation_command }}
|
|
||||||
if: ${{ inputs.package_installation_command != '' }}
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_PKCS8 }}
|
|
||||||
known_hosts: unnecessary
|
|
||||||
- name: print created files
|
|
||||||
run: ls /root/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
|
||||||
|
|
||||||
ssh-pkcs8-bitbucket:
|
|
||||||
name: Connect to bitbucket.org (PKCS8 format)
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
container: ${{ inputs.container }}
|
|
||||||
steps:
|
|
||||||
- name: Install packages
|
|
||||||
run: ${{ inputs.package_installation_command }}
|
|
||||||
if: ${{ inputs.package_installation_command != '' }}
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_PKCS8 }}
|
|
||||||
known_hosts: |
|
|
||||||
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
|
|
||||||
- name: print created files
|
|
||||||
run: ls /root/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@bitbucket.org:shimataro999/ssh-test.git tmp
|
|
||||||
|
|
||||||
ssh-rfc4716:
|
|
||||||
name: Connect to github.com (RFC4716 format)
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
container: ${{ inputs.container }}
|
|
||||||
steps:
|
|
||||||
- name: Install packages
|
|
||||||
run: ${{ inputs.package_installation_command }}
|
|
||||||
if: ${{ inputs.package_installation_command != '' }}
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_RFC4716 }}
|
|
||||||
known_hosts: unnecessary
|
|
||||||
- name: print created files
|
|
||||||
run: ls /root/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
|
||||||
|
|
||||||
ssh-rfc4716-bitbucket:
|
|
||||||
name: Connect to bitbucket.org (RFC4716 format)
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
container: ${{ inputs.container }}
|
|
||||||
steps:
|
|
||||||
- name: Install packages
|
|
||||||
run: ${{ inputs.package_installation_command }}
|
|
||||||
if: ${{ inputs.package_installation_command != '' }}
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_RFC4716 }}
|
|
||||||
known_hosts: |
|
|
||||||
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
|
|
||||||
- name: print created files
|
|
||||||
run: ls /root/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@bitbucket.org:shimataro999/ssh-test.git tmp
|
|
||||||
|
|
||||||
key_if_exists_replace-key_exists:
|
|
||||||
name: if_key_exists=replace / key exists
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
container: ${{ inputs.container }}
|
|
||||||
steps:
|
|
||||||
- name: Install packages
|
|
||||||
run: ${{ inputs.package_installation_command }}
|
|
||||||
if: ${{ inputs.package_installation_command != '' }}
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key (dummy)
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: "dummy" # replaced
|
|
||||||
known_hosts: unnecessary
|
|
||||||
- name: Install SSH key (replace)
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
|
||||||
known_hosts: unnecessary
|
|
||||||
if_key_exists: replace
|
|
||||||
- name: print created files
|
|
||||||
run: ls /root/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
|
||||||
|
|
||||||
key_if_exists_replace-key_doesnt_exist:
|
|
||||||
name: if_key_exists=replace / key doesn't exist
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
container: ${{ inputs.container }}
|
|
||||||
steps:
|
|
||||||
- name: Install packages
|
|
||||||
run: ${{ inputs.package_installation_command }}
|
|
||||||
if: ${{ inputs.package_installation_command != '' }}
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key (replace)
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
|
||||||
known_hosts: unnecessary
|
|
||||||
if_key_exists: replace
|
|
||||||
- name: print created files
|
|
||||||
run: ls /root/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
|
||||||
|
|
||||||
key_if_exists_ignore-key_exists:
|
|
||||||
name: if_key_exists=ignore / key exists
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
container: ${{ inputs.container }}
|
|
||||||
steps:
|
|
||||||
- name: Install packages
|
|
||||||
run: ${{ inputs.package_installation_command }}
|
|
||||||
if: ${{ inputs.package_installation_command != '' }}
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key (dummy)
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
|
||||||
known_hosts: unnecessary
|
|
||||||
- name: Install SSH key (replace)
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: "dummy" # ignored
|
|
||||||
known_hosts: unnecessary
|
|
||||||
if_key_exists: ignore
|
|
||||||
- name: print created files
|
|
||||||
run: ls /root/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
|
||||||
|
|
||||||
key_if_exists_ignore-key_doesnt_exist:
|
|
||||||
name: if_key_exists=ignore / key doesn't exist
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
container: ${{ inputs.container }}
|
|
||||||
steps:
|
|
||||||
- name: Install packages
|
|
||||||
run: ${{ inputs.package_installation_command }}
|
|
||||||
if: ${{ inputs.package_installation_command != '' }}
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key (replace)
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
|
||||||
known_hosts: unnecessary
|
|
||||||
if_key_exists: ignore
|
|
||||||
- name: print created files
|
|
||||||
run: ls /root/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
|
||||||
|
|
||||||
key_if_exists_fail-key_exists:
|
|
||||||
name: if_key_exists=fail / key exists
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
container: ${{ inputs.container }}
|
|
||||||
steps:
|
|
||||||
- name: Install packages
|
|
||||||
run: ${{ inputs.package_installation_command }}
|
|
||||||
if: ${{ inputs.package_installation_command != '' }}
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key (dummy)
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
|
||||||
known_hosts: unnecessary
|
|
||||||
- name: Install SSH key (replace)
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: "dummy" # ignored
|
|
||||||
known_hosts: unnecessary
|
|
||||||
if_key_exists: fail
|
|
||||||
continue-on-error: true
|
|
||||||
- name: print created files
|
|
||||||
run: ls /root/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
|
||||||
|
|
||||||
key_if_exists_fail-key_doesnt_exist:
|
|
||||||
name: if_key_exists=fail / key doesn't exist
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
container: ${{ inputs.container }}
|
|
||||||
steps:
|
|
||||||
- name: Install packages
|
|
||||||
run: ${{ inputs.package_installation_command }}
|
|
||||||
if: ${{ inputs.package_installation_command != '' }}
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key (replace)
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
|
||||||
known_hosts: unnecessary
|
|
||||||
if_key_exists: fail
|
|
||||||
- name: print created files
|
|
||||||
run: ls /root/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
|
106
.github/workflows/reusable-verify.yml
vendored
106
.github/workflows/reusable-verify.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
# reusable workflow: Verify
|
# reusable workflow: Verify container
|
||||||
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
|
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
@ -7,6 +7,16 @@ on:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
description: "'runs-on'"
|
description: "'runs-on'"
|
||||||
|
container:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
description: container name
|
||||||
|
package_installation_command:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
description: package installation command
|
||||||
secrets:
|
secrets:
|
||||||
SSH_KEY_PEM:
|
SSH_KEY_PEM:
|
||||||
required: true
|
required: true
|
||||||
|
@ -22,7 +32,11 @@ jobs:
|
||||||
ssh-pem:
|
ssh-pem:
|
||||||
name: Connect to github.com (PEM format)
|
name: Connect to github.com (PEM format)
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
container: ${{ inputs.container }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: ${{ inputs.package_installation_command }}
|
||||||
|
if: ${{ inputs.package_installation_command != '' }}
|
||||||
- name: Checkout source codes
|
- name: Checkout source codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
|
@ -30,15 +44,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
key: ${{ secrets.SSH_KEY_PEM }}
|
||||||
known_hosts: unnecessary
|
known_hosts: unnecessary
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.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
|
||||||
|
|
||||||
ssh-pem-bitbucket:
|
ssh-pem-bitbucket:
|
||||||
name: Connect to bitbucket.org (PEM format)
|
name: Connect to bitbucket.org (PEM format)
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
container: ${{ inputs.container }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: ${{ inputs.package_installation_command }}
|
||||||
|
if: ${{ inputs.package_installation_command != '' }}
|
||||||
- name: Checkout source codes
|
- name: Checkout source codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
|
@ -47,15 +63,17 @@ jobs:
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
key: ${{ secrets.SSH_KEY_PEM }}
|
||||||
known_hosts: |
|
known_hosts: |
|
||||||
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
|
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.ssh
|
|
||||||
- name: git clone through SSH
|
- name: git clone through SSH
|
||||||
run: git clone git@bitbucket.org:shimataro999/ssh-test.git tmp
|
run: git clone git@bitbucket.org:shimataro999/ssh-test.git tmp
|
||||||
|
|
||||||
ssh-pkcs8:
|
ssh-pkcs8:
|
||||||
name: Connect to github.com (PKCS8 format)
|
name: Connect to github.com (PKCS8 format)
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
container: ${{ inputs.container }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: ${{ inputs.package_installation_command }}
|
||||||
|
if: ${{ inputs.package_installation_command != '' }}
|
||||||
- name: Checkout source codes
|
- name: Checkout source codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
|
@ -63,15 +81,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
key: ${{ secrets.SSH_KEY_PKCS8 }}
|
key: ${{ secrets.SSH_KEY_PKCS8 }}
|
||||||
known_hosts: unnecessary
|
known_hosts: unnecessary
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.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
|
||||||
|
|
||||||
ssh-pkcs8-bitbucket:
|
ssh-pkcs8-bitbucket:
|
||||||
name: Connect to bitbucket.org (PKCS8 format)
|
name: Connect to bitbucket.org (PKCS8 format)
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
container: ${{ inputs.container }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: ${{ inputs.package_installation_command }}
|
||||||
|
if: ${{ inputs.package_installation_command != '' }}
|
||||||
- name: Checkout source codes
|
- name: Checkout source codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
|
@ -80,15 +100,17 @@ jobs:
|
||||||
key: ${{ secrets.SSH_KEY_PKCS8 }}
|
key: ${{ secrets.SSH_KEY_PKCS8 }}
|
||||||
known_hosts: |
|
known_hosts: |
|
||||||
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
|
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.ssh
|
|
||||||
- name: git clone through SSH
|
- name: git clone through SSH
|
||||||
run: git clone git@bitbucket.org:shimataro999/ssh-test.git tmp
|
run: git clone git@bitbucket.org:shimataro999/ssh-test.git tmp
|
||||||
|
|
||||||
ssh-rfc4716:
|
ssh-rfc4716:
|
||||||
name: Connect to github.com (RFC4716 format)
|
name: Connect to github.com (RFC4716 format)
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
container: ${{ inputs.container }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: ${{ inputs.package_installation_command }}
|
||||||
|
if: ${{ inputs.package_installation_command != '' }}
|
||||||
- name: Checkout source codes
|
- name: Checkout source codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
|
@ -96,15 +118,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
key: ${{ secrets.SSH_KEY_RFC4716 }}
|
key: ${{ secrets.SSH_KEY_RFC4716 }}
|
||||||
known_hosts: unnecessary
|
known_hosts: unnecessary
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.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
|
||||||
|
|
||||||
ssh-rfc4716-bitbucket:
|
ssh-rfc4716-bitbucket:
|
||||||
name: Connect to bitbucket.org (RFC4716 format)
|
name: Connect to bitbucket.org (RFC4716 format)
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
container: ${{ inputs.container }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: ${{ inputs.package_installation_command }}
|
||||||
|
if: ${{ inputs.package_installation_command != '' }}
|
||||||
- name: Checkout source codes
|
- name: Checkout source codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
|
@ -113,37 +137,17 @@ jobs:
|
||||||
key: ${{ secrets.SSH_KEY_RFC4716 }}
|
key: ${{ secrets.SSH_KEY_RFC4716 }}
|
||||||
known_hosts: |
|
known_hosts: |
|
||||||
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
|
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.ssh
|
|
||||||
- name: git clone through SSH
|
- name: git clone through SSH
|
||||||
run: git clone git@bitbucket.org:shimataro999/ssh-test.git tmp
|
run: git clone git@bitbucket.org:shimataro999/ssh-test.git tmp
|
||||||
|
|
||||||
ssh-with-name:
|
|
||||||
name: Connect to github.com with name and config
|
|
||||||
runs-on: ${{ inputs.os }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout source codes
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: ./.
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
|
||||||
known_hosts: unnecessary
|
|
||||||
name: ssh_key_name # optional
|
|
||||||
config: | # optional
|
|
||||||
Host github
|
|
||||||
Hostname github.com
|
|
||||||
User git
|
|
||||||
IdentityFile ~/.ssh/ssh_key_name
|
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.ssh
|
|
||||||
- name: git clone through SSH
|
|
||||||
run: git clone github:shimataro/ssh-key-action.git tmp
|
|
||||||
|
|
||||||
key_if_exists_replace-key_exists:
|
key_if_exists_replace-key_exists:
|
||||||
name: if_key_exists=replace / key exists
|
name: if_key_exists=replace / key exists
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
container: ${{ inputs.container }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: ${{ inputs.package_installation_command }}
|
||||||
|
if: ${{ inputs.package_installation_command != '' }}
|
||||||
- name: Checkout source codes
|
- name: Checkout source codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install SSH key (dummy)
|
- name: Install SSH key (dummy)
|
||||||
|
@ -157,15 +161,17 @@ jobs:
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
key: ${{ secrets.SSH_KEY_PEM }}
|
||||||
known_hosts: unnecessary
|
known_hosts: unnecessary
|
||||||
if_key_exists: replace
|
if_key_exists: replace
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.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
|
||||||
|
|
||||||
key_if_exists_replace-key_doesnt_exist:
|
key_if_exists_replace-key_doesnt_exist:
|
||||||
name: if_key_exists=replace / key doesn't exist
|
name: if_key_exists=replace / key doesn't exist
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
container: ${{ inputs.container }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: ${{ inputs.package_installation_command }}
|
||||||
|
if: ${{ inputs.package_installation_command != '' }}
|
||||||
- name: Checkout source codes
|
- name: Checkout source codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install SSH key (replace)
|
- name: Install SSH key (replace)
|
||||||
|
@ -174,15 +180,17 @@ jobs:
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
key: ${{ secrets.SSH_KEY_PEM }}
|
||||||
known_hosts: unnecessary
|
known_hosts: unnecessary
|
||||||
if_key_exists: replace
|
if_key_exists: replace
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.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
|
||||||
|
|
||||||
key_if_exists_ignore-key_exists:
|
key_if_exists_ignore-key_exists:
|
||||||
name: if_key_exists=ignore / key exists
|
name: if_key_exists=ignore / key exists
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
container: ${{ inputs.container }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: ${{ inputs.package_installation_command }}
|
||||||
|
if: ${{ inputs.package_installation_command != '' }}
|
||||||
- name: Checkout source codes
|
- name: Checkout source codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install SSH key (dummy)
|
- name: Install SSH key (dummy)
|
||||||
|
@ -196,15 +204,17 @@ jobs:
|
||||||
key: "dummy" # ignored
|
key: "dummy" # ignored
|
||||||
known_hosts: unnecessary
|
known_hosts: unnecessary
|
||||||
if_key_exists: ignore
|
if_key_exists: ignore
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.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
|
||||||
|
|
||||||
key_if_exists_ignore-key_doesnt_exist:
|
key_if_exists_ignore-key_doesnt_exist:
|
||||||
name: if_key_exists=ignore / key doesn't exist
|
name: if_key_exists=ignore / key doesn't exist
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
container: ${{ inputs.container }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: ${{ inputs.package_installation_command }}
|
||||||
|
if: ${{ inputs.package_installation_command != '' }}
|
||||||
- name: Checkout source codes
|
- name: Checkout source codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install SSH key (replace)
|
- name: Install SSH key (replace)
|
||||||
|
@ -213,15 +223,17 @@ jobs:
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
key: ${{ secrets.SSH_KEY_PEM }}
|
||||||
known_hosts: unnecessary
|
known_hosts: unnecessary
|
||||||
if_key_exists: ignore
|
if_key_exists: ignore
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.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
|
||||||
|
|
||||||
key_if_exists_fail-key_exists:
|
key_if_exists_fail-key_exists:
|
||||||
name: if_key_exists=fail / key exists
|
name: if_key_exists=fail / key exists
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
container: ${{ inputs.container }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: ${{ inputs.package_installation_command }}
|
||||||
|
if: ${{ inputs.package_installation_command != '' }}
|
||||||
- name: Checkout source codes
|
- name: Checkout source codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install SSH key (dummy)
|
- name: Install SSH key (dummy)
|
||||||
|
@ -236,15 +248,17 @@ jobs:
|
||||||
known_hosts: unnecessary
|
known_hosts: unnecessary
|
||||||
if_key_exists: fail
|
if_key_exists: fail
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.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
|
||||||
|
|
||||||
key_if_exists_fail-key_doesnt_exist:
|
key_if_exists_fail-key_doesnt_exist:
|
||||||
name: if_key_exists=fail / key doesn't exist
|
name: if_key_exists=fail / key doesn't exist
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
|
container: ${{ inputs.container }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: ${{ inputs.package_installation_command }}
|
||||||
|
if: ${{ inputs.package_installation_command != '' }}
|
||||||
- name: Checkout source codes
|
- name: Checkout source codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install SSH key (replace)
|
- name: Install SSH key (replace)
|
||||||
|
@ -253,7 +267,5 @@ jobs:
|
||||||
key: ${{ secrets.SSH_KEY_PEM }}
|
key: ${{ secrets.SSH_KEY_PEM }}
|
||||||
known_hosts: unnecessary
|
known_hosts: unnecessary
|
||||||
if_key_exists: fail
|
if_key_exists: fail
|
||||||
- name: print created files
|
|
||||||
run: ls ~/.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
|
||||||
|
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
- alpine:3.11
|
- alpine:3.11
|
||||||
- alpine:3.12
|
- alpine:3.12
|
||||||
- alpine:3.13
|
- alpine:3.13
|
||||||
uses: "./.github/workflows/reusable-verify-container.yml"
|
uses: "./.github/workflows/reusable-verify.yml"
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
container: ${{ matrix.container }}
|
container: ${{ matrix.container }}
|
||||||
|
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
container:
|
container:
|
||||||
- quay.io/centos/centos:centos7
|
- quay.io/centos/centos:centos7
|
||||||
- quay.io/centos/centos:stream8
|
- quay.io/centos/centos:stream8
|
||||||
uses: "./.github/workflows/reusable-verify-container.yml"
|
uses: "./.github/workflows/reusable-verify.yml"
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
container: ${{ matrix.container }}
|
container: ${{ matrix.container }}
|
||||||
|
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
- ubuntu:18.04
|
- ubuntu:18.04
|
||||||
- ubuntu:20.04
|
- ubuntu:20.04
|
||||||
- ubuntu:22.04
|
- ubuntu:22.04
|
||||||
uses: "./.github/workflows/reusable-verify-container.yml"
|
uses: "./.github/workflows/reusable-verify.yml"
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
container: ${{ matrix.container }}
|
container: ${{ matrix.container }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue