Skip to content

Commit

Permalink
chore: workflowの変更
Browse files Browse the repository at this point in the history
  • Loading branch information
yuito-it committed Jul 31, 2024
1 parent 4b42db8 commit 0a65174
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docker-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: enable
run: |
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'
sudo cat /etc/docker/daemon.json
sudo systemctl restart docker || sudo journalctl -xeu docker.service
echo ---
docker info
echo ---
docker image ls
echo ---
sudo systemctl status docker
shell: bash
- name: Check Docker status
run: |
export DOCKER_CLIENT_TIMEOUT=120
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/docker-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: enable
run: |
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'
sudo cat /etc/docker/daemon.json
sudo systemctl restart docker || sudo journalctl -xeu docker.service
echo ---
docker info
echo ---
docker image ls
echo ---
sudo systemctl status docker
- name: Insecure Setting
run: |
export DOCKER_CLIENT_TIMEOUT=120
Expand Down

0 comments on commit 0a65174

Please sign in to comment.