Skip to content

Commit

Permalink
timeoutの設定の変更
Browse files Browse the repository at this point in the history
  • Loading branch information
yuito-it committed Jul 31, 2024
1 parent fb9fefd commit 2347df5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/docker-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
SW_JSON=""
SW_JSON="$(sudo cat /etc/docker/daemon.json | jq '.+{ "insecure-registries":["${{ secrets.K8S_DOCKER_REGISTHOST }}"] }')"
echo "${SW_JSON}" | sudo bash -c 'cat -- > /etc/docker/daemon.json'
SW_JSON="$(sudo cat /etc/docker/daemon.json | jq '.+{ "experimental":false }')"
echo "${SW_JSON}" | sudo bash -c 'cat -- > /etc/docker/daemon.json'
sudo cat /etc/docker/daemon.json
sudo systemctl restart docker || sudo journalctl -xeu docker.service
echo ---
Expand All @@ -28,12 +30,6 @@ jobs:
echo ---
sudo systemctl status docker
shell: bash
- name: Check Docker status
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 .
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/docker-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
run: |
SW_JSON=""
SW_JSON="$(sudo cat /etc/docker/daemon.json | jq '.+{ "insecure-registries":["${{ secrets.K8S_DOCKER_REGISTHOST }}"] }')"
"experimental": false
echo "${SW_JSON}" | sudo bash -c 'cat -- > /etc/docker/daemon.json'
SW_JSON="$(sudo cat /etc/docker/daemon.json | jq '.+{ "experimental":false }')"
echo "${SW_JSON}" | sudo bash -c 'cat -- > /etc/docker/daemon.json'
sudo cat /etc/docker/daemon.json
sudo systemctl restart docker || sudo journalctl -xeu docker.service
Expand All @@ -32,13 +35,6 @@ jobs:
echo ---
sudo systemctl status docker
- name: Insecure Setting
run: |
export DOCKER_CLIENT_TIMEOUT=9000
export COMPOSE_HTTP_TIMEOUT=120
sudo systemctl daemon-reload
sudo systemctl restart docker
- name: Build Docker image
run: docker build -t ${{ secrets.K8S_DOCKER_REGISTHOST }}/mediawiki:${{ env.TAG_NAME }} .

Expand Down

0 comments on commit 2347df5

Please sign in to comment.