mirror of
https://github.com/maciejpedzich/maciejpedzi.ch.git
synced 2024-11-27 23:55:47 +01:00
Roll back to hardcoded values
This commit is contained in:
parent
9b832ea452
commit
8385c90924
@ -9,11 +9,6 @@ jobs:
|
|||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: docker build -t ${{ vars.IMAGE_TAG }} .
|
run: docker build -t maciejpedzi.ch:latest .
|
||||||
- name: Rerun website's Docker container
|
- 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
|
run: chmod +x ./rerun-container.sh && ./rerun-container.sh
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/sh
|
#!/usr/bin/sh
|
||||||
|
|
||||||
docker stop $CONTAINER_NAME && \
|
docker stop my_website && \
|
||||||
docker container rm $(docker ps -aqf "name=$CONTAINER_NAME") && \
|
docker container rm $(docker ps -aqf "name=my_website") && \
|
||||||
docker run -d -p $PORT_PAIR --netwok $NETWORK_NAME --name $CONTAINER_NAME $IMAGE_TAG
|
docker run -d -p 8505:80 --netwok my_network --name my_website maciejpedzi.ch:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user