Remove 'sudo' command
Some checks failed
Deploy to Docker Container / deploy (push) Failing after 35s

This commit is contained in:
TheThomaas 2023-05-26 19:33:36 +02:00
parent cd928de919
commit c45ffbab48

View file

@ -26,7 +26,7 @@ jobs:
# password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker image
run: sudo docker build -t thethomaas/11ty-workflow-example:latest --build-arg SITE_DIRECTORY=dist .
run: docker build -t thethomaas/11ty-workflow-example:latest --build-arg SITE_DIRECTORY=dist .
# run: docker build -t gitea.local.thethomaas.net/thethomaas/11ty-workflow-example:latest --build-arg SITE_DIRECTORY=dist .
# - name: Push Docker image
@ -39,9 +39,9 @@ jobs:
- name: Run Docker container
run: |
sudo docker stop dev
sudo docker rm dev
sudo docker run -d -p 8086:80 --name dev thethomaas/11ty-workflow-example:latest
docker stop dev
docker rm dev
docker run -d -p 8086:80 --name dev thethomaas/11ty-workflow-example:latest
# run: sudo docker run -d -p 8086:80 -v /mnt/appdata/dev/dist:/usr/share/nginx/html:ro thethomaas/11ty-workflow-example:latest