Skip to content

Commit 669f3d8

Browse files
committed
trying workflow ssh
1 parent 26b1a50 commit 669f3d8

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed
File renamed without changes.

.github/workflows/sshtest.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: sshTest
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
workflow_dispatch:
10+
11+
jobs:
12+
job_one:
13+
name: Deploy
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: test ssh
17+
uses: appleboy/ssh-action@master
18+
with:
19+
host: craulio.com
20+
username: larry
21+
key: ${{ secrets.FAST_VUE3_DOCKER_WORKFLOW_PRIV_KEY }}
22+
port: 22
23+
script: |
24+
cd /home/larry/www
25+
git pull origin main
26+
git status

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ Stubbing out and documenting FastAPI, VueJS 3 and Docker workflow.
33

44
NOTE: This is a sandbox project. Glean ideas only.
55

6-
6+
- Copy private key to github secrets
7+
- Copy public key to DigitalOcean authorized_keys
8+
-
79
![Build Containers for Prod & Push to Dockerhub](https://github.com/LarryEitel/fastapi-vue3-docker-workflow/workflows/Build%20Containers%20for%20Prod%20&%20Push%20to%20Dockerhub/badge.svg)
810

911
## Must Reads
@@ -30,6 +32,9 @@ NOTE: This is a sandbox project. Glean ideas only.
3032
- docker-compose
3133
- docker-compose up -d --build
3234

35+
- On Digitalocean
36+
- ~/actions-runner/_work/fastapi-vue3-docker-workflow/fastapi-vue3-docker-workflow
37+
3338

3439
- [x] Create GitAction to build docker image and push to dockerhub
3540
- Confirm image arrived at private [hub.docker.com](https://hub.docker.com/)

0 commit comments

Comments
 (0)