Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ShootGan authored Oct 26, 2023
1 parent b49e6e6 commit 8f77186
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Deploy on EC2
on:
push:
branches: [master]
workflow_dispatch:

jobs:
docker_build:
Expand Down Expand Up @@ -48,7 +49,7 @@ jobs:
DROPBOX_REFRESH_TOKEN: ${{secrets.DROPBOX_REFRESH_TOKEN}}
with:
host: ${{secrets.BOI_HOSTNAME}}
username: ec2-user
username: opc
key: ${{secrets.BOI_PRIVATE_KEY}}
envs: DOCKER_IMAGE, DOCKER_CONTAINER_NAME, DROPBOX_APP_KEY, DROPBOX_APP_SECRET, DROPBOX_REFRESH_TOKEN
script_stop: true
Expand All @@ -70,4 +71,4 @@ jobs:
--restart unless-stopped \
--network="wkk-network" \
--name $DOCKER_CONTAINER_NAME $DOCKER_IMAGE
docker image prune <<< y
docker image prune <<< y

0 comments on commit 8f77186

Please sign in to comment.