mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-24 10:15:41 +00:00
Test repo name var
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m19s
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m19s
This commit is contained in:
parent
1e59f3c46f
commit
0be5658e49
@ -38,15 +38,15 @@ jobs:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ${{secrets.DOCKER_HUB_USERNAME}}/portfolio:v1
|
||||
tags: ${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:v1
|
||||
|
||||
- name: Stop and remove old Docker container
|
||||
continue-on-error: true
|
||||
run: |
|
||||
sudo docker stop portfolio
|
||||
sudo docker rm portfolio
|
||||
sudo docker stop ${{vars.REPO_NAME}}
|
||||
sudo docker rm ${{vars.REPO_NAME}}
|
||||
|
||||
- name: Pull new image and start Docker container
|
||||
run: |
|
||||
sudo docker pull ${{secrets.DOCKER_HUB_USERNAME}}/portfolio:v1
|
||||
sudo docker run -d --restart unless-stopped --env-file ./.env --name portfolio -p ${{vars.TAILSCALE_IP}}:3000:3000 ${{secrets.DOCKER_HUB_USERNAME}}/portfolio:v1
|
||||
sudo docker pull ${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:v1
|
||||
sudo docker run -d --restart unless-stopped --env-file ./.env --name portfolio -p ${{vars.PORTFOLIO_IP}}:3000:3000 ${{secrets.DOCKER_HUB_USERNAME}}/${{vars.REPO_NAME}}:v1
|
Loading…
Reference in New Issue
Block a user