Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
van1164 authored Nov 7, 2023
1 parent db62add commit 00e58b1
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,12 @@ jobs:
username: ubuntu
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
sudo apt-get install npm -y
sudo apt-get install docker.io -y
sudo systemctl start docker
sudo chmod 666 /var/run/docker.sock
sudo systemctl enable docker
docker login
van133
ttink1245!
cd test
docker build --tag front-end .
docker run -d -p 80:80 front-end
sudo apt-get install npm
sudo npm install
sudo npm run build
sudocp -r dist/* /usr/share/nginx/html/
sudo systemctl stop nginx
sudo systemctl start nginx

0 comments on commit 00e58b1

Please sign in to comment.