Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoslat1 committed Jun 11, 2024
2 parents 225829a + c4b11a5 commit deba5e9
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Nama workflow
name: Excel Reader App CI/CD

on:
Expand Down Expand Up @@ -30,7 +29,7 @@ jobs:
- name: Build project
run: npm run build

deploy:
deploy-docker:
name: Deploy DockerHub
needs: build
runs-on: ubuntu-latest
Expand All @@ -50,4 +49,19 @@ jobs:
DOCKER_IMAGE: ${{ secrets.DOCKER_USERNAME }}/vitets-excel-reader
run: |
docker build -t $DOCKER_IMAGE .
docker push $DOCKER_IMAGE
docker push $DOCKER_IMAGE
deploy-digitalocean:
name: Deploy DigitalOcean
needs: deploy-docker
runs-on: ubuntu-latest

steps:
- name: Deploy to DigitalOcean
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
key: ${{ secrets.SSH_PRIVATE_KEYS }}
username: ${{ secrets.SSH_USERNAME }}
script: |
docker pull ${{ secrets.DOCKER_USERNAME }}/vitets-excel-reader

0 comments on commit deba5e9

Please sign in to comment.