Skip to content

0321minji is testing out GitHub Actions πŸš€ #77

0321minji is testing out GitHub Actions πŸš€

0321minji is testing out GitHub Actions πŸš€ #77

name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions πŸš€
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Display system info
run: |
uname -a
dig www.cognisle.shop
- name: EC2 ssh connection test
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ubuntu
key: ${{ secrets.KEY }}
script: |
mkdir -p /home/ubuntu/Cognisle_BE
env:
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_KEY: ${{ secrets.KEY }}
- name: copy source via ssh key
uses: burnett01/[email protected]
with:
switches: -avzr --update
remote_path: /home/ubuntu/Cognisle_BE
remote_user: ubuntu
remote_key: ${{ secrets.KEY }}
remote_host: ${{ secrets.SSH_HOST }}