Skip to content

Commit

Permalink
chore: insecureなしに
Browse files Browse the repository at this point in the history
  • Loading branch information
yuito-it committed Oct 23, 2024
1 parent 6cb37cf commit 2d009b6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/docker-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,5 @@ jobs:
- name: Load Docker image from file
run: docker load -i mediawiki_latest.tar

- name: Set Docker configuration
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 ---
docker info
echo ---
docker image ls
echo ---
sudo systemctl status docker
shell: bash

- name: Push Docker image
run: docker push ${{ secrets.K8S_DOCKER_REGISTHOST }}/mediawiki:latest
14 changes: 0 additions & 14 deletions .github/workflows/docker-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,6 @@ 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 2d009b6

Please sign in to comment.