Skip to content

Commit

Permalink
Update digitalocean-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
3xjn authored Oct 15, 2024
1 parent a794a36 commit 3ab3835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/digitalocean-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
build_and_push:
build:
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -40,5 +40,6 @@ jobs:
run: |
ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=10 -i ~/.ssh/id_rsa ${{ secrets.DROPLET_USERNAME }}@${{ secrets.DROPLET_IP }} << EOF
echo $GITHUB_PAT | docker login ghcr.io -u 3xjn --password-stdin
docker stop my-todo-app || true && docker rm my-todo-app || true
docker pull ghcr.io/${{ env.REPO_NAME }}/my-container:latest
docker run -d --name my-todo-app ghcr.io/${{ env.REPO_NAME }}/my-container:latest

0 comments on commit 3ab3835

Please sign in to comment.