From 21a580c14e1eb8f194bb909d5e1c282676339b9d Mon Sep 17 00:00:00 2001 From: YuitoAkatsuki Date: Wed, 31 Jul 2024 11:28:50 +0900 Subject: [PATCH] test --- .github/workflows/docker-push.yaml | 8 +++++++- .github/workflows/docker-tag.yaml | 10 +++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-push.yaml b/.github/workflows/docker-push.yaml index 2ebd614..5ca2743 100644 --- a/.github/workflows/docker-push.yaml +++ b/.github/workflows/docker-push.yaml @@ -14,7 +14,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - name: enable + - name: Set deamon.json run: | SW_JSON="" SW_JSON="$(sudo cat /etc/docker/daemon.json | jq '.+{ "insecure-registries":["${{ secrets.K8S_DOCKER_REGISTHOST }}"] }')" @@ -30,6 +30,12 @@ jobs: echo --- sudo systemctl status docker shell: bash + - name: Set Timeout + run: | + export DOCKER_CLIENT_TIMEOUT=9000 + export COMPOSE_HTTP_TIMEOUT=120 + sudo systemctl status docker.service + sudo journalctl -xeu docker.service - name: Build Docker image run: docker build -t ${{ secrets.K8S_DOCKER_REGISTHOST }}/mediawiki:latest . diff --git a/.github/workflows/docker-tag.yaml b/.github/workflows/docker-tag.yaml index 08b8489..324401f 100644 --- a/.github/workflows/docker-tag.yaml +++ b/.github/workflows/docker-tag.yaml @@ -18,7 +18,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - name: enable + - name: Set deamon.json run: | SW_JSON="" SW_JSON="$(sudo cat /etc/docker/daemon.json | jq '.+{ "insecure-registries":["${{ secrets.K8S_DOCKER_REGISTHOST }}"] }')" @@ -34,6 +34,14 @@ jobs: docker image ls echo --- sudo systemctl status docker + shell: bash + + - name: Set Timeout + run: | + export DOCKER_CLIENT_TIMEOUT=9000 + export COMPOSE_HTTP_TIMEOUT=120 + sudo systemctl status docker.service + sudo journalctl -xeu docker.service - name: Build Docker image run: docker build -t ${{ secrets.K8S_DOCKER_REGISTHOST }}/mediawiki:${{ env.TAG_NAME }} .