Remove 'sudo' command
Some checks failed
Deploy to Docker Container / deploy (push) Failing after 35s
Some checks failed
Deploy to Docker Container / deploy (push) Failing after 35s
This commit is contained in:
parent
cd928de919
commit
c45ffbab48
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue