From 5cd10c1e0540584fb0bb1d4bb739b9328c63b230 Mon Sep 17 00:00:00 2001 From: shimataro Date: Mon, 8 Feb 2021 22:47:54 +0900 Subject: [PATCH] support Docker container --- .github/workflows/verify-on-container.yml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/verify-on-container.yml diff --git a/.github/workflows/verify-on-container.yml b/.github/workflows/verify-on-container.yml new file mode 100644 index 0000000..bc98683 --- /dev/null +++ b/.github/workflows/verify-on-container.yml @@ -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 ~/.ssh + - name: git clone through SSH + run: git clone git@github.com:shimataro/ssh-key-action.git tmp