mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-24 14:55: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: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
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
|
- name: Stop and remove old Docker container
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
sudo docker stop portfolio
|
sudo docker stop ${{vars.REPO_NAME}}
|
||||||
sudo docker rm portfolio
|
sudo docker rm ${{vars.REPO_NAME}}
|
||||||
|
|
||||||
- name: Pull new image and start Docker container
|
- name: Pull new image and start Docker container
|
||||||
run: |
|
run: |
|
||||||
sudo docker pull ${{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.TAILSCALE_IP}}:3000:3000 ${{secrets.DOCKER_HUB_USERNAME}}/portfolio: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