mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-24 13:25:41 +00:00
Clean up workflow steps
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m17s
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m17s
This commit is contained in:
parent
a0cf1436b7
commit
1e59f3c46f
@ -46,8 +46,7 @@ jobs:
|
||||
sudo docker stop portfolio
|
||||
sudo docker rm portfolio
|
||||
|
||||
- name: Pull the Docker image
|
||||
run: sudo docker pull ${{secrets.DOCKER_HUB_USERNAME}}/portfolio:v1
|
||||
|
||||
- name: Run the Docker container
|
||||
run: sudo docker run -d --restart unless-stopped --env-file ./.env --name portfolio -p ${{vars.TAILSCALE_IP}}:3000:3000 ${{secrets.DOCKER_HUB_USERNAME}}/portfolio:v1
|
||||
- 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
|
Loading…
Reference in New Issue
Block a user