mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-21 20:25:42 +00:00
Update workflow
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m31s
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m31s
This commit is contained in:
parent
104e79b951
commit
f5146f4b06
@ -38,7 +38,7 @@ jobs:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:v1
|
||||
tags: ${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:latest
|
||||
|
||||
- name: Stop and remove old Docker container
|
||||
continue-on-error: true
|
||||
@ -48,9 +48,9 @@ jobs:
|
||||
|
||||
- name: Pull new image and start Docker container
|
||||
run: |
|
||||
sudo docker pull ${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:v1
|
||||
sudo docker pull ${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:latest
|
||||
sudo docker run -d --restart unless-stopped \
|
||||
--env-file ./.env \
|
||||
--name ${{vars.REPO_NAME}} \
|
||||
-p ${{vars.DEPLOY_IP}}:3000:3000 \
|
||||
${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:v1
|
||||
${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:latest
|
Loading…
Reference in New Issue
Block a user