diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 51592a2..f4cd218 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -6,37 +6,20 @@ on: - main jobs: - test: - name: Test - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: https://gitea.com/actions/checkout@v4 - - - name: Setup Go - uses: https://github.com/actions/setup-go@v5 - with: - go-version: '1.25' - - - name: Run tests - run: go test ./... -race - deploy: - name: Deploy runs-on: ubuntu-latest - needs: test - steps: - - name: Deploy to Mac Mini via SSH - uses: https://github.com/appleboy/ssh-action@v1.0.3 + - name: 서버에 배포 + uses: appleboy/ssh-action@v1 with: - host: ${{ secrets.DEPLOY_HOST }} - username: ${{ secrets.DEPLOY_USER }} - key: ${{ secrets.DEPLOY_SSH_KEY }} - port: ${{ secrets.DEPLOY_PORT }} + host: ${{ secrets.SERVER_HOST }} + username: ${{ secrets.SERVER_USER }} + key: ${{ secrets.SSH_PRIVATE_KEY }} + port: 22 script: | + export PATH=$PATH:/usr/local/bin:/opt/homebrew/bin:$HOME/.docker/bin cd ${{ secrets.DEPLOY_PATH }} git pull origin main - docker-compose down - docker-compose up -d --build - docker-compose logs --tail=20 server + docker compose down + docker compose up -d --build + docker compose logs --tail=20 server