47 lines
No EOL
1.4 KiB
YAML
47 lines
No EOL
1.4 KiB
YAML
on: [push]
|
|
jobs:
|
|
# test:
|
|
# runs-on: bookworm
|
|
# container: minidocks/mkdocs
|
|
# steps:
|
|
# - name: Add NodeJs & Git
|
|
# run: |
|
|
# uname -a
|
|
# apk add nodejs npm git
|
|
# - name: Checkout repository with git
|
|
# run: |
|
|
# git clone --depth 1 https://git.numenaute.org/YannK/Actions_tests.git
|
|
# # uses: actions/checkout@v4
|
|
# # with:
|
|
# # github-server-url: https://git.numenaute.org/
|
|
# - name: Show content
|
|
# run: |
|
|
# pwd
|
|
# ls -al
|
|
# - name: Compile mkdocs
|
|
# run: |
|
|
# cd Actions_tests
|
|
# mkdocs build
|
|
# - name: 'Upload Artifact'
|
|
# uses: actions/upload-artifact@v3
|
|
# with:
|
|
# name: Mkdocs_files
|
|
# path: /workspace/YannK/Actions_tests/Actions_tests/site
|
|
|
|
ssh_test:
|
|
name: SSH connection tests
|
|
runs-on: bookworm
|
|
steps:
|
|
- name: Create directory
|
|
run: |
|
|
mkdir -p ~/.ssh/
|
|
- name: Create file
|
|
run: |
|
|
touch ~/.ssh/id_rsa
|
|
- name: Install SSH key to proper place
|
|
run: |
|
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
|
ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
|
|
- name: Connect and check
|
|
run: |
|
|
ssh -i ~/.ssh/id_rsa -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "ls -al" |