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

Feature/container (#170)

* support Docker container

* move .ssh to /root

* remove print step

* change home directory for Docker container

* print HOME

* print home

* print home

* update dist file

* update dirname

* update CHANGELOG

* add badge
This commit is contained in:
shimataro 2021-02-08 23:31:19 +09:00 committed by GitHub
parent 0b924ac88f
commit 026e5f82bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,28 @@
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Docker container on Ubuntu 20.04
on:
- push
jobs:
ssh:
name: Connect to github.com
runs-on: ubuntu-20.04
container: 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 }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: print created files
run: ls -l /root/.ssh
- name: git clone through SSH
run: git clone git@github.com:shimataro/ssh-key-action.git tmp