Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
reconfigured CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxada committed Jul 14, 2023
1 parent f30b44a commit 116ddc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
doctl registry image delete $REGISTRY/$IMAGE_NAME:$image_tag;
done
- name: Build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
push: true
Expand All @@ -66,7 +66,7 @@ jobs:
docker rm ${{ env.IMAGE_NAME }}
fi
- name: Deploy Docker image to DigitalOcean Droplet
uses: appleboy/ssh-action@master
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:latest
WORKDIR /usr/src/app
COPY package.json .
COPY . .
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 2020
CMD [ "node", "index.js" ]
CMD [ "npm", "start" ]

0 comments on commit 116ddc3

Please sign in to comment.