mirror of
https://github.com/maciejpedzich/maciejpedzi.ch.git
synced 2024-11-10 00:13:02 +01:00
Move final step to a separate script
This commit is contained in:
parent
9cb5c8d37f
commit
b82d55d1e1
@ -11,6 +11,4 @@ jobs:
|
|||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: docker build -t maciejpedzi.ch:latest .
|
run: docker build -t maciejpedzi.ch:latest .
|
||||||
- name: Rerun website's Docker container
|
- name: Rerun website's Docker container
|
||||||
run: docker stop my_website && \
|
run: rerun-container.sh
|
||||||
docker rm $(docker ps -aqf "ancestor=maciejpedzi.ch:latest") && \
|
|
||||||
docker run -d -p 8505:80 --name my_website maciejpedzi.ch:latest
|
|
||||||
|
2
rerun-container.sh
Normal file
2
rerun-container.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
docker container rm -f $(docker ps -aqf "ancestor=maciejpedzi.ch:latest")
|
||||||
|
docker run -d -p 8505:80 --name my_website maciejpedzi.ch:latest
|
Loading…
Reference in New Issue
Block a user