fix mby v6
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m10s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m10s
This commit is contained in:
parent
7437be29fc
commit
51428eb2f5
@ -26,17 +26,30 @@ jobs:
|
|||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin
|
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin
|
||||||
|
|
||||||
|
# Add step to configure Docker for possible insecure registry
|
||||||
|
- name: Configure Docker for Harbor
|
||||||
|
run: |
|
||||||
|
mkdir -p /etc/docker
|
||||||
|
echo '{"insecure-registries": ["harbor.galpodlipnik.com"]}' > /etc/docker/daemon.json
|
||||||
|
# Restart Docker to apply changes
|
||||||
|
service docker restart || true
|
||||||
|
# Add some diagnostic info
|
||||||
|
echo "Testing connectivity to Harbor..."
|
||||||
|
curl -v --connect-timeout 10 https://harbor.galpodlipnik.com || echo "Connection failed but continuing"
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
install: true
|
install: true
|
||||||
|
|
||||||
- name: Login to Harbor
|
- name: Login to Harbor with retries
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: harbor.galpodlipnik.com
|
registry: harbor.galpodlipnik.com
|
||||||
username: ${{ secrets.HARBOR_USERNAME }}
|
username: ${{ secrets.HARBOR_USERNAME }}
|
||||||
password: ${{ secrets.HARBOR_PASSWORD }}
|
password: ${{ secrets.HARBOR_PASSWORD }}
|
||||||
|
# Add a longer timeout for login attempts
|
||||||
|
timeout: 180
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user