Roll back to hardcoded values

This commit is contained in:
Maciej Pędzich 2024-04-06 12:05:33 +02:00
parent 9b832ea452
commit 8385c90924
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D
2 changed files with 4 additions and 9 deletions

View File

@ -9,11 +9,6 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v3
- name: Build Docker image
run: docker build -t ${{ vars.IMAGE_TAG }} .
run: docker build -t maciejpedzi.ch:latest .
- name: Rerun website's Docker container
env:
CONTAINER_NAME: ${{ vars.CONATINER_NAME }}
NETWORK_NAME: ${{ vars.NETWORK_NAME }}
PORT_PAIR: ${{ vars.PORT_PAIR }}
IMAGE_TAG: ${{ vars.IMAGE_TAG }}
run: chmod +x ./rerun-container.sh && ./rerun-container.sh

View File

@ -1,5 +1,5 @@
#!/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
docker stop my_website && \
docker container rm $(docker ps -aqf "name=my_website") && \
docker run -d -p 8505:80 --netwok my_network --name my_website maciejpedzi.ch:latest