add wait for docker
Some checks failed
default / build-and-deploy (push) Has been cancelled

This commit is contained in:
Pavel 2025-03-30 17:42:09 +03:00
parent 67cc9d0463
commit 7954c3d31d

View file

@ -17,6 +17,10 @@ jobs:
image: docker:dind
options: --privileged
run: |
while ! docker info > /dev/null 2>&1; do
echo "Waiting for Docker daemon..."
sleep 1
done
echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.neur0tx.site -u "${{ github.actor }}" --password-stdin
docker build -t git.neur0tx.site/${{ github.repository_owner }}/${{ github.repository_name }}:latest .
docker push git.neur0tx.site/${{ github.repository_owner }}/${{ github.repository_name }}:latest