Skip to content

Commit

Permalink
simple scp deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ainghazal committed Apr 21, 2024
1 parent 12fe296 commit 337a7fc
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ jobs:

build-linux-amd64:
runs-on: ubuntu-latest
needs: [test, lint, gosec]
# TODO: enable dep tree!
# needs: [test, lint, gosec]
steps:
- uses: actions/checkout@v4
- name: setup go
Expand All @@ -64,3 +65,22 @@ jobs:
with:
name: tt-server
path: tt-server

deploy:
runs-on: ubuntu-latest
environment: cicd
needs: build-linux-amd64
steps:
- name: get artifact
uses: actions/download-artifact@v4
with:
name: tt-server
path: dist
- name: deploy via scp
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
source: "dist/tt-server"
target: ${{ secrets.SSH_DIR }}

0 comments on commit 337a7fc

Please sign in to comment.