-
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.
* Remove dotenv from python script * Add deploy to E2 workflow
- Loading branch information
1 parent
9593209
commit bc9d6db
Showing
3 changed files
with
30 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Deploy to GCP E2 | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Deploy to E2 Instance | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.GCP_INSTANCE_IP }} | ||
username: ${{ secrets.GCP_USERNAME }} | ||
key: ${{ secrets.GCP_SSH_KEY }} | ||
script: | | ||
# Create app directory if it doesn't exist | ||
cd ~/hass.agent-bot | ||
# Or if directory already exists: | ||
git pull origin main | ||
# Build and start containers | ||
sudo docker-compose build | ||
sudo docker-compose up -d |
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
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
nextcord | ||
python-dotenv | ||
nextcord |