mirror of
https://github.com/maciejpedzich/maciejpedzi.ch.git
synced 2024-11-10 00:13:02 +01:00
Ensure docker rm is supplied with my_website's container ID
This commit is contained in:
parent
b477aa0a48
commit
9cb5c8d37f
@ -11,4 +11,6 @@ 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 && docker rm my_website && docker run -d -p 8505:80 --name my_website maciejpedzi.ch:latest
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user