Use vars context instead of env

This commit is contained in:
Maciej Pędzich 2024-04-06 11:49:41 +02:00
parent a7be42685f
commit e3882006ef
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D

View File

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