ci: remove mirror registry settings
Some checks failed
build-docker-images-for-latest-release / build-and-push (push) Failing after 2m0s
Some checks failed
build-docker-images-for-latest-release / build-and-push (push) Failing after 2m0s
This commit is contained in:
parent
f4696f84f5
commit
0c116b8dd0
@ -38,28 +38,28 @@ jobs:
|
|||||||
- name: Create Docker configuration directory
|
- name: Create Docker configuration directory
|
||||||
run: sudo mkdir -p /etc/docker
|
run: sudo mkdir -p /etc/docker
|
||||||
|
|
||||||
# Configure Docker to use dockerp.com as a mirror
|
# # Configure Docker to use dockerp.com as a mirror
|
||||||
- name: Configure Docker Daemon for Mirror
|
# - name: Configure Docker Daemon for Mirror
|
||||||
run: |
|
# run: |
|
||||||
echo '{
|
# echo '{
|
||||||
"registry-mirrors": ["https://dockerp.com"]
|
# "registry-mirrors": ["https://dockerp.com"]
|
||||||
}' | sudo tee /etc/docker/daemon.json
|
# }' | sudo tee /etc/docker/daemon.json
|
||||||
|
#
|
||||||
# Restart Docker Daemon Without systemd
|
# # Restart Docker Daemon Without systemd
|
||||||
- name: Restart Docker Daemon
|
# - name: Restart Docker Daemon
|
||||||
run: |
|
# run: |
|
||||||
sudo chmod 644 /etc/docker/daemon.json
|
# sudo chmod 644 /etc/docker/daemon.json
|
||||||
sudo pkill -f dockerd || true
|
# sudo pkill -f dockerd || true
|
||||||
sudo pkill -f docker || true
|
# sudo pkill -f docker || true
|
||||||
sudo nohup dockerd > /dev/null 2>&1 &
|
# sudo nohup dockerd > /dev/null 2>&1 &
|
||||||
sudo nohup docker > /dev/null 2>&1 &
|
# sudo nohup docker > /dev/null 2>&1 &
|
||||||
sleep 5
|
# sleep 5
|
||||||
|
#
|
||||||
# Validate Docker Configuration
|
# # Validate Docker Configuration
|
||||||
- name: Validate Docker Configuration
|
# - name: Validate Docker Configuration
|
||||||
run: |
|
# run: |
|
||||||
cat /etc/docker/daemon.json
|
# cat /etc/docker/daemon.json
|
||||||
docker info | grep -i "Registry Mirrors"
|
# docker info | grep -i "Registry Mirrors"
|
||||||
|
|
||||||
# Set up Docker Buildx
|
# Set up Docker Buildx
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
@ -73,6 +73,11 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_SYN_USER }}
|
username: ${{ secrets.DOCKER_SYN_USER }}
|
||||||
password: ${{ secrets.DOCKER_SYN_PWD }}
|
password: ${{ secrets.DOCKER_SYN_PWD }}
|
||||||
|
|
||||||
|
- name: Set Docker Timeout
|
||||||
|
run: |
|
||||||
|
echo "DOCKER_CLIENT_TIMEOUT=300" >> $GITHUB_ENV
|
||||||
|
echo "DOCKER_BUILD_TIMEOUT=300" >> $GITHUB_ENV
|
||||||
|
|
||||||
# Build and push the Docker image
|
# Build and push the Docker image
|
||||||
- name: Build and Push Docker Image
|
- name: Build and Push Docker Image
|
||||||
uses: http://fly6516.synology.me:4000/docker/build-push-action@v4
|
uses: http://fly6516.synology.me:4000/docker/build-push-action@v4
|
||||||
|
Loading…
Reference in New Issue
Block a user