Skip to content

Commit

Permalink
GPTくんに頼った
Browse files Browse the repository at this point in the history
  • Loading branch information
yuito-it committed Jul 31, 2024
1 parent 69fcaa8 commit d7d0513
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/docker-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,19 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
install: true

- name: enable
- name: Enable Docker Insecure Registry
run: |
SW_JSON=""
SW_JSON="$(sudo cat /etc/docker/daemon.json | jq '.+{ "insecure-registries":["${{ secrets.K8S_DOCKER_REGISTHOST }}"],"max-concurrent-uploads": 1,"debug":true }')"
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 ---
sudo mkdir -p /etc/docker
echo '{"insecure-registries": ["${{ secrets.K8S_DOCKER_REGISTHOST }}"], "max-concurrent-uploads": 1, "debug": true}' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker
sudo systemctl status docker
docker info
echo ---
docker image ls
echo ---
sudo systemctl status docker
shell: bash

- name: Check Docker status
run: |
export DOCKER_CLIENT_TIMEOUT=9000
Expand Down

0 comments on commit d7d0513

Please sign in to comment.