diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 0c2a2d8..c1bbee1 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,7 +6,7 @@ on: - main env: - REGISTRY: git.chemavx.xyz + REGISTRY: gitea.gitea.svc.cluster.local:3000 K8S_MANIFESTS_REPO: http://chemavx:${{ secrets.CI_TOKEN }}@gitea.gitea.svc.cluster.local:3000/chemavx/k8s-manifests.git GIT_SSL_NO_VERIFY: "true" @@ -24,50 +24,50 @@ jobs: run: echo "TAG=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT - name: Log in to registry - run: echo "${{ secrets.CI_TOKEN }}" | docker login git.chemavx.xyz -u chemavx --password-stdin + run: echo "${{ secrets.CI_TOKEN }}" | docker login gitea.gitea.svc.cluster.local:3000 -u chemavx --password-stdin - name: Build and push bot image env: DOCKER_BUILDKIT: "0" run: | TAG=${{ steps.tag.outputs.TAG }} - docker pull git.chemavx.xyz/chemavx/polymarket-bot:buildcache || true + docker pull gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:buildcache || true docker build \ - --cache-from git.chemavx.xyz/chemavx/polymarket-bot:buildcache \ - -t git.chemavx.xyz/chemavx/polymarket-bot:${TAG} \ - -t git.chemavx.xyz/chemavx/polymarket-bot:buildcache \ + --cache-from gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:buildcache \ + -t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:${TAG} \ + -t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:buildcache \ -f Dockerfile . - docker push git.chemavx.xyz/chemavx/polymarket-bot:${TAG} - docker push git.chemavx.xyz/chemavx/polymarket-bot:buildcache + docker push gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:${TAG} + docker push gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:buildcache - name: Build and push API image env: DOCKER_BUILDKIT: "0" run: | TAG=${{ steps.tag.outputs.TAG }} - docker pull git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache || true + docker pull gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:buildcache || true docker build \ - --cache-from git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache \ - -t git.chemavx.xyz/chemavx/polymarket-bot-api:${TAG} \ - -t git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache \ + --cache-from gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:buildcache \ + -t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:${TAG} \ + -t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:buildcache \ -f Dockerfile.api . - docker push git.chemavx.xyz/chemavx/polymarket-bot-api:${TAG} - docker push git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache + docker push gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:${TAG} + docker push gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:buildcache - name: Build and push dashboard image env: DOCKER_BUILDKIT: "0" run: | TAG=${{ steps.tag.outputs.TAG }} - docker pull git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache || true + docker pull gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:buildcache || true docker build \ - --cache-from git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache \ - -t git.chemavx.xyz/chemavx/polymarket-bot-dashboard:${TAG} \ - -t git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache \ + --cache-from gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:buildcache \ + -t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:${TAG} \ + -t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:buildcache \ -f dashboard/Dockerfile \ dashboard - docker push git.chemavx.xyz/chemavx/polymarket-bot-dashboard:${TAG} - docker push git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache + docker push gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:${TAG} + docker push gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:buildcache - name: Update k8s manifests run: |