Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Productionへのデプロイ #503

Merged
merged 19 commits into from
Dec 27, 2024
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
8ebfc04
feature 不要資源の削除:Pusherの削除
H37kouya Dec 22, 2024
dcaeaeb
fix メイン画面のエラー削除
H37kouya Dec 22, 2024
1fc2e35
feature 不要資源の削除:Pusherの削除
H37kouya Dec 22, 2024
7dc113a
feature Nodejsのパッケージマイナーバージョンアップ
H37kouya Dec 26, 2024
8b354cf
fix 新歓機能のバグ修正
H37kouya Dec 26, 2024
2cdc815
feature 管理画面からデモ機能の削除
H37kouya Dec 26, 2024
c6e5184
fix 新歓画面の表示バグ修正
H37kouya Dec 26, 2024
7992620
test APIの自動デプロイの復活:SSH接続の改良
H37kouya Dec 27, 2024
d7a787a
Merge pull request #501 from uu-plathome/feature/api-ci_cd_rebuild
H37kouya Dec 27, 2024
133c5bb
test APIの自動デプロイの復活:SSH接続の改良
H37kouya Dec 27, 2024
94b821c
test APIの自動デプロイの復活:SSH接続の改良
H37kouya Dec 27, 2024
70a9c29
test APIの自動デプロイの復活:SSH接続の改良
H37kouya Dec 27, 2024
54c6244
Merge commit '70a9c29315636b8defc68809db612620af2a4d14' into feature/…
H37kouya Dec 27, 2024
03f13e2
Fix code style issues with Prettier
lint-action Dec 27, 2024
10d2374
Fix code style issues with Prettier
lint-action Dec 27, 2024
dbb27b5
lint adminパッケージのlint
H37kouya Dec 27, 2024
94da4bc
fix 不要なカラムの非表示
H37kouya Dec 27, 2024
65c3def
Merge commit '10d23746b7c2e5f37e8eda2b1230711a1617f1a3' into feature/…
H37kouya Dec 27, 2024
6ffa0d9
Merge pull request #502 from uu-plathome/feature/delete-pusher-api
H37kouya Dec 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test APIの自動デプロイの復活:SSH接続の改良
  • Loading branch information
H37kouya committed Dec 27, 2024
commit 7992620c7225d8176a04ee60167c19bb6d2d4be2
31 changes: 8 additions & 23 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
@@ -69,32 +69,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: appleboy/ssh-action@v1.2.0
- name: Deploy
env:
PRIVATE_KEY: ${{ secrets.XSERVER_SSH_KEY }}
USER_NAME: ${{ secrets.XSERVER_USER_NAME }}
HOST_NAME: ${{ secrets.XSERVER_HOST_NAME }}
host: ${{ secrets.XSERVER_HOST_NAME }}
username: ${{ secrets.XSERVER_USER_NAME }}
key: ${{ secrets.XSERVER_SSH_KEY }}
port: 10022
run: |
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key && \
ssh -vT -p 10022 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o TCPKeepAlive=yes -F /dev/null -i private_key ${USER_NAME}@${HOST_NAME} '
cd ~/uu-circles.com/work/api-stg && \
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/stg && \
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-stg/${{ github.run_number }} ~/uu-circles.com/work/api-stg/current
'
whoami
pwd
ls -la

deploy:
if: github.ref == 'refs/heads/develop/production'
Loading