Update .gitea/workflows/dockerbuild.yml
Some checks failed
Build and Push Docker Image / build (push) Failing after 10s
Some checks failed
Build and Push Docker Image / build (push) Failing after 10s
This commit is contained in:
@@ -8,6 +8,20 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- name: Fix Docker Socket Permissions
|
||||||
|
run: |
|
||||||
|
# Check current socket permissions
|
||||||
|
ls -la /var/run/docker.sock
|
||||||
|
|
||||||
|
# Fix socket permissions (if needed)
|
||||||
|
if [ -S /var/run/docker.sock ]; then
|
||||||
|
sudo chmod 666 /var/run/docker.sock
|
||||||
|
echo "Fixed socket permissions"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Test access
|
||||||
|
docker info || echo "Still having issues"
|
||||||
|
|
||||||
- name: Add User to Docker Group and Refresh
|
- name: Add User to Docker Group and Refresh
|
||||||
run: |
|
run: |
|
||||||
sudo usermod -aG docker $USER
|
sudo usermod -aG docker $USER
|
||||||
|
|||||||
Reference in New Issue
Block a user