お知らせ機能の追加 #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#name: mainブランチの内容をもとに本番環境APIをデプロイ | |
# | |
#on: | |
# push: | |
# branches: | |
# - main | |
# workflow_dispatch: | |
#jobs: | |
# ssh: | |
# runs-on: ubuntu-latest | |
# environment: | |
# name: "本番環境API" | |
# url: https://api.seiryofes.com/docs | |
# steps: | |
# - name: 🔑Loading ssh private key... | |
# run: | | |
# mkdir -p .ssh && chmod 700 .ssh | |
# echo "$SSH_KEY" > .ssh/id_rsa && chmod 600 .ssh/id_rsa | |
# env: | |
# SSH_KEY: ${{ secrets.SSH_PRIVATEKEY }} | |
# - name: 🚀Deploy!! | |
# run: | | |
# ssh -t -t -o "StrictHostKeyChecking=no" -i .ssh/id_rsa $HOST " | |
# cd $QUAINT_REPO_PATH | |
# git checkout main | |
# git pull | |
# docker-compose down | |
# docker-compose -f docker-compose-app.yml up -d --build | |
# " | |
# env: | |
# HOST: ${{ secrets.SSH_HOST }} | |
# QUAINT_REPO_PATH: ${{ secrets.QUAINT_REPO_PATH }} |