From 678a1b4b8856172007f506a7f9b97a4d9fa23f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kluczek?= Date: Wed, 21 Feb 2024 14:24:53 +0100 Subject: [PATCH] Fix 429 docker hub errors --- .github/workflows/tpl-images.yml | 17 +++++++++++++++-- ci/Dockerfile.backend | 2 +- ci/Dockerfile.client | 3 ++- ci/Dockerfile.coin-prices-server | 3 ++- ci/Dockerfile.contracts-v1 | 3 ++- ci/Dockerfile.subgraph | 3 ++- 6 files changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tpl-images.yml b/.github/workflows/tpl-images.yml index 51195474e7..f0c231a825 100644 --- a/.github/workflows/tpl-images.yml +++ b/.github/workflows/tpl-images.yml @@ -31,17 +31,30 @@ jobs: # account # see: https://github.com/actions/checkout/issues/211 path: __local - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - name: Login to Docker registry uses: docker/login-action@v3 with: registry: europe-docker.pkg.dev username: _json_key_base64 password: ${{ secrets.GCP_DOCKER_IMAGES_REGISTRY_SERVICE_ACCOUNT }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + buildkitd-flags: --debug + driver: docker + config-inline: | + debug = true + insecure-entitlements = [ "network.host", "security.insecure" ] + + [registry."local-docker-registry.wildland.dev:80"] + http = true + insecure = true + - name: Build and push uses: docker/build-push-action@v5 with: + allow: network.host,security.insecure context: __local/${{ matrix.SERVICE }} file: __local/ci/Dockerfile.${{ matrix.SERVICE }} push: true diff --git a/ci/Dockerfile.backend b/ci/Dockerfile.backend index cc1916ad88..b9f0de4235 100644 --- a/ci/Dockerfile.backend +++ b/ci/Dockerfile.backend @@ -1,4 +1,4 @@ -FROM local-docker-registry.wildland.dev/acidrain/python-poetry:3.11-slim-1.5.1 +FROM local-docker-registry.wildland.dev:80/acidrain/python-poetry:3.11-slim-1.5.1 WORKDIR /app diff --git a/ci/Dockerfile.client b/ci/Dockerfile.client index 6e9129cb26..19bd8d687d 100644 --- a/ci/Dockerfile.client +++ b/ci/Dockerfile.client @@ -1,4 +1,5 @@ -FROM local-docker-registry.wildland.dev/library/node:16-alpine +FROM local-docker-registry.wildland.dev:80/library/node:16-alpine + WORKDIR /app COPY package.json yarn.lock ./ RUN yarn install --ignore-scripts --frozen-lockfile && yarn cache clean diff --git a/ci/Dockerfile.coin-prices-server b/ci/Dockerfile.coin-prices-server index 782ac58a1d..c1bb3db1d5 100644 --- a/ci/Dockerfile.coin-prices-server +++ b/ci/Dockerfile.coin-prices-server @@ -1,4 +1,5 @@ -FROM local-docker-registry.wildland.dev/library/node:16-alpine AS root +FROM local-docker-registry.wildland.dev:80/library/node:16-alpine AS root + WORKDIR /app COPY package.json yarn.lock ./ diff --git a/ci/Dockerfile.contracts-v1 b/ci/Dockerfile.contracts-v1 index 73c9a0f753..e9bca8497e 100644 --- a/ci/Dockerfile.contracts-v1 +++ b/ci/Dockerfile.contracts-v1 @@ -1,4 +1,5 @@ -FROM local-docker-registry.wildland.dev/library/node:16-alpine AS root +FROM local-docker-registry.wildland.dev:80/library/node:16-alpine AS root + WORKDIR /app FROM root AS build diff --git a/ci/Dockerfile.subgraph b/ci/Dockerfile.subgraph index 032b1b0354..1196e10ae0 100644 --- a/ci/Dockerfile.subgraph +++ b/ci/Dockerfile.subgraph @@ -1,4 +1,5 @@ -FROM local-docker-registry.wildland.dev/library/node:16-alpine AS root +FROM local-docker-registry.wildland.dev:80/library/node:16-alpine AS root + WORKDIR /app FROM root AS build