mirror of
https://github.com/maciejpedzich/maciejpedzi.ch.git
synced 2024-11-27 15:45:47 +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
|
||||
run: docker build -t maciejpedzi.ch:latest .
|
||||
- name: Rerun website's Docker container
|
||||
run: docker stop my_website && \
|
||||
docker rm $(docker ps -aqf "ancestor=maciejpedzi.ch:latest") && \
|
||||
docker run -d -p 8505:80 --name my_website maciejpedzi.ch:latest
|
||||
run: rerun-container.sh
|
||||
|
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