diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index dd6800a..93e445f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -27,7 +27,7 @@ jobs: id: tags shell: sh run: | - REGISTRY="gitea.gitea.svc.cluster.local" + REGISTRY="gitea.gitea.svc.cluster.local:80" REPO_OWNER="${{ gitea.repository_owner }}" REPO_NAME="${{ gitea.repository }}" @@ -57,16 +57,10 @@ jobs: echo "IMAGE_LATEST=${IMAGE_BASE}:latest" >> $GITHUB_OUTPUT - - name: Configure Docker for insecure registry - shell: sh - run: | - mkdir -p /etc/docker - echo '{"insecure-registries": ["gitea.gitea.svc.cluster.local"]}' > /etc/docker/daemon.json - - name: Login to registry shell: sh run: | - echo "${{ secrets.PERSONAL_TOKEN }}" | docker login http://gitea.gitea.svc.cluster.local:80 -u "${{ gitea.actor }}" --password-stdin + echo "${{ secrets.PERSONAL_TOKEN }}" | docker login gitea.gitea.svc.cluster.local:80 -u "${{ gitea.actor }}" --password-stdin - name: Build and push API image shell: sh @@ -103,7 +97,7 @@ jobs: id: tags shell: sh run: | - REGISTRY="gitea.gitea.svc.cluster.local" + REGISTRY="gitea.gitea.svc.cluster.local:80" REPO_OWNER="${{ gitea.repository_owner }}" REPO_NAME="${{ gitea.repository }}" @@ -133,16 +127,10 @@ jobs: echo "IMAGE_LATEST=${IMAGE_BASE}:frontend-latest" >> $GITHUB_OUTPUT - - name: Configure Docker for insecure registry - shell: sh - run: | - mkdir -p /etc/docker - echo '{"insecure-registries": ["gitea.gitea.svc.cluster.local"]}' > /etc/docker/daemon.json - - name: Login to registry shell: sh run: | - echo "${{ secrets.PERSONAL_TOKEN }}" | docker login http://gitea.gitea.svc.cluster.local:80 -u "${{ gitea.actor }}" --password-stdin + echo "${{ secrets.PERSONAL_TOKEN }}" | docker login gitea.gitea.svc.cluster.local:80 -u "${{ gitea.actor }}" --password-stdin - name: Build and push frontend image shell: sh