Merge pull request #67 from hibiya-itchief/develop #145
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: developブランチの内容をもとに検証環境APIをデプロイ | |
#on: | |
# push: | |
# branches: | |
# - develop | |
# workflow_dispatch: | |
#jobs: | |
# ssh: | |
# runs-on: ubuntu-latest | |
# environment: | |
# name: "検証環境API" | |
# url: https://api-dev.seiryofes.com/docs | |
# steps: | |
# - name: 🔑Loading ssh private key... | |
# run: | | |
# mkdir -p .ssh && chmod 700 .ssh | |
# echo "$SSH_KEY" > .ssh/google_compute_engine && chmod 600 .ssh/google_compute_engine | |
# env: | |
# SSH_KEY: ${{ secrets.SSH_PRIVATEKEY }} | |
# - name: 🚀Deploy!! | |
# run: | | |
# ssh -t -t -o "StrictHostKeyChecking=no" -i .ssh/google_compute_engine $HOST " | |
# cd $QUAINT_REPO_PATH | |
# git checkout develop | |
# git pull | |
# docker-compose down | |
# docker-compose -f docker-compose-dev.yml up -d --build | |
# " | |
# env: | |
# HOST: ${{ secrets.SSH_HOST }} | |
# QUAINT_REPO_PATH: ${{ secrets.QUAINT_REPO_PATH }} |