Compare commits

..

No commits in common. "3c8bceea33d05676f6ff888fcc81c766a9cd090d" and "3be5f79d87e0f502f72c732ad660b986e93748d7" have entirely different histories.

View file

@ -1,45 +0,0 @@
on:
push:
branches:
- main
env:
EXEC: arimelody-web
jobs:
deploy:
runs-on: docker
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
- name: Run tests
run: go test -v ./model
- name: Build binary
run: make build
- name: Bundle tarball
run: make bundle
- name: Set up SSH keys
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Copy to production server
run: |
mkdir -p ~/.ssh/
export REMOTE=${{ secrets.SSH_USER }}@{{ secrets.SSH_HOST }}
export PORT=${{ secrets.SSH_PORT }}
echo "${{ secrets.SSH_PRIVATE_KEY }}" >
scp -P ${{ secrets.SSH_PORT }} ./$EXEC.tar.gz $REMOTE:~/
ssh -o StrictHostKeyChecking=no $REMOTE -p $PORT << EOF
cd ${{ secrets.DEPLOY_DIR }}
tar xzf ~/$EXEC.tar.gz"
echo "restart" > ./deploy.sock
EOF