Use env variables configured for the action

This commit is contained in:
Maciej Pędzich 2024-04-06 11:16:03 +02:00
parent 522f91f12a
commit 14248b1449
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D

View File

@ -1,3 +1,5 @@
docker stop my_website && \
docker container rm $(docker ps -aqf "name=my_website") && \
docker run -d -p 8505:80 --name my_website maciejpedzi.ch:latest
#!/usr/bin/sh
docker stop $CONTAINER_NAME && \
docker container rm $(docker ps -aqf "name=$CONTAINER_NAME") && \
docker run -d -p $PORT_PAIR --netwok $NETWORK_NAME --name $CONTAINER_NAME $IMAGE_TAG