-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7aeaf4
commit e89b243
Showing
1 changed file
with
1 addition
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,17 +31,6 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
- name: Copy infra files to server | ||
uses: appleboy/scp-action@master | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USER }} | ||
key: ${{ secrets.SSH_KEY }} | ||
passphrase: ${{ secrets.PASSPHRASE }} | ||
source: "cppinfra/docker-compose.yml" | ||
target: ${{ secrets.DEPLOY_PATH }} | ||
overwrite: true | ||
strip_components: 1 | ||
|
||
- name: executing remote ssh commands to deploy | ||
uses: appleboy/ssh-action@master | ||
|
@@ -51,7 +40,6 @@ jobs: | |
key: ${{ secrets.SSH_KEY }} | ||
passphrase: ${{ secrets.PASSPHRASE }} | ||
script: | | ||
touch .env | ||
cd ${{ secrets.DEPLOY_PATH }} | ||
echo "BOT_TOKEN=${{ secrets.BOT_TOKEN }}" > .env | ||
echo POSTGRES_USER=${{ secrets.POSTGRES_USER }} >> .env | ||
|
@@ -68,7 +56,7 @@ jobs: | |
sudo docker compose up -d --build | ||
sudo docker system prune -af | ||
|
||
send_message: | ||
runs-on: ubuntu-latest | ||
needs: deploy | ||
|