From f79072d65a57a8c23d8d79ee4e6a67beeca64833 Mon Sep 17 00:00:00 2001 From: H37kouya Date: Fri, 27 Dec 2024 10:54:26 +0900 Subject: [PATCH] =?UTF-8?q?fix=20=E8=87=AA=E5=8B=95=E3=83=87=E3=83=97?= =?UTF-8?q?=E3=83=AD=E3=82=A4=E3=81=AE=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/api.yml | 51 --------------------------------------- 1 file changed, 51 deletions(-) diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index 3599f689..5838959d 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -62,54 +62,3 @@ jobs: run: | docker compose exec -T app ls storage/logs docker compose exec -T app /bin/bash -c "cd storage/logs && find . -type f | xargs cat" - - deploy-stg: - if: github.ref == 'refs/heads/develop/stg' - needs: [laravel-tests] - runs-on: ubuntu-latest - - steps: - - name: Deploy - uses: appleboy/ssh-action@v0.1.6 - with: - host: ${{ secrets.XSERVER_HOST_NAME }} - username: ${{ secrets.XSERVER_USER_NAME }} - key: ${{ secrets.XSERVER_SSH_KEY }} - port: 10022 - script: | - whoami - pwd - ls -la - - deploy: - if: github.ref == 'refs/heads/develop/production' - needs: [laravel-tests] - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Deploy - env: - PRIVATE_KEY: ${{ secrets.XSERVER_SSH_KEY }} - USER_NAME: ${{ secrets.XSERVER_USER_NAME }} - HOST_NAME: ${{ secrets.XSERVER_HOST_NAME }} - run: | - echo "$PRIVATE_KEY" > private_key && chmod 600 private_key - ssh -vvv -p 10022 -o StrictHostKeyChecking=no -i private_key ${USER_NAME}@${HOST_NAME} ' - cd ~/uu-circles.com/work/api && \ - mkdir ${{ github.run_number }} && \ - cd ${{ github.run_number }} && \ - git clone https://github.com/UU-PlatHome/uu-circles.git && \ - cd uu-circles/api && \ - git reset --hard origin/develop/production && \ - cp ../../../.env .env && \ - cp ../../../credentials.json credentials.json && \ - composer install && \ - php artisan migrate --force && \ - php artisan cache:clear && \ - php artisan config:cache && \ - php artisan route:cache && \ - php artisan view:cache - cd ~/uu-circles.com && \ - ln -nfs ~/uu-circles.com/work/api/${{ github.run_number }} ~/uu-circles.com/work/api/current - '