Skip to content

Commit

Permalink
Fix: upgrade node version and tag dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jokj624 committed Nov 27, 2023
1 parent 8e72343 commit 44818c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/develop_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,18 @@ jobs:
username: ${{secrets.DOCKER_HUB_USERNAME}}
password: ${{secrets.DOCKER_HUB_TOKEN}}

- name: build and release to DockerHub
- name: build and tagging release to DockerHub
env:
NAME: ${{secrets.DOCKER_HUB_USERNAME}}
REPO: havit-push
run: |
docker build -t $REPO -f Dockerfile.dev .
docker tag $REPO:latest $NAME/$REPO:latest
docker tag $REPO:latest $NAME/#$REPO:latest
docker tag $REPO:latest $NAME/$REPO:dev
docker tag $REPO:latest $NAME/$REPO:${{steps.current-time.outputs.formattedTime}}
docker push $NAME/$REPO:latest
docker push $NAME/$REPO:dev
docker push $NAME/$REPO:${{steps.current-time.outputs.formattedTime}}
- name: Run Deploy Script
uses: appleboy/ssh-action@master
Expand All @@ -72,7 +76,7 @@ jobs:
port: ${{ secrets.REMOTE_SSH_PORT }}
script: |
sudo su
bash /opt/havit/docker/deploy.sh
bash /opt/havit/docker/deploy-dev.sh
- name: action-slack
uses: 8398a7/action-slack@v3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine
FROM node:18-alpine

WORKDIR /usr/app

Expand Down

0 comments on commit 44818c1

Please sign in to comment.