Remove 'sudo' command
This commit is contained in:
parent
cd928de919
commit
c45ffbab48
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
# password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Build Docker image
|
- 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 .
|
# run: docker build -t gitea.local.thethomaas.net/thethomaas/11ty-workflow-example:latest --build-arg SITE_DIRECTORY=dist .
|
||||||
|
|
||||||
# - name: Push Docker image
|
# - name: Push Docker image
|
||||||
|
|
@ -39,9 +39,9 @@ jobs:
|
||||||
|
|
||||||
- name: Run Docker container
|
- name: Run Docker container
|
||||||
run: |
|
run: |
|
||||||
sudo docker stop dev
|
docker stop dev
|
||||||
sudo docker rm dev
|
docker rm dev
|
||||||
sudo docker run -d -p 8086:80 --name dev thethomaas/11ty-workflow-example:latest
|
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
|
# run: sudo docker run -d -p 8086:80 -v /mnt/appdata/dev/dist:/usr/share/nginx/html:ro thethomaas/11ty-workflow-example:latest
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue