diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index aab6123..ff89c21 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -82,11 +82,11 @@ jobs: echo "=== Build Docker image ===" docker buildx build -t shot-crafter-calculator:ci . echo "=== Login to Gitea Registry ===" - echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.danielarroyo.cl -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin + echo "${{ secrets.REGISTRY_TOKEN }}" | docker login 10.5.0.195:3000 -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin SHORT_SHA=$(echo "$GITHUB_SHA" | cut -c1-7) echo "=== Tag ===" - docker tag shot-crafter-calculator:ci gitea.danielarroyo.cl/proyectos/shot-crafter-calculator:latest - docker tag shot-crafter-calculator:ci gitea.danielarroyo.cl/proyectos/shot-crafter-calculator:${SHORT_SHA} + docker tag shot-crafter-calculator:ci 10.5.0.195:3000/proyectos/shot-crafter-calculator:latest + docker tag shot-crafter-calculator:ci 10.5.0.195:3000/proyectos/shot-crafter-calculator:${SHORT_SHA} push_with_retry() { local ref="$1" @@ -105,8 +105,8 @@ jobs: return 1 } - push_with_retry "gitea.danielarroyo.cl/proyectos/shot-crafter-calculator:latest" - push_with_retry "gitea.danielarroyo.cl/proyectos/shot-crafter-calculator:${SHORT_SHA}" + push_with_retry "10.5.0.195:3000/proyectos/shot-crafter-calculator:latest" + push_with_retry "10.5.0.195:3000/proyectos/shot-crafter-calculator:${SHORT_SHA}" echo "=== Logout ===" - docker logout gitea.danielarroyo.cl + docker logout 10.5.0.195:3000 echo "=== Done ===" diff --git a/compose.yaml b/compose.yaml index d525dd1..0948664 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,6 +1,6 @@ services: shot-crafter: - image: gitea.danielarroyo.cl/proyectos/shot-crafter-calculator:latest + image: 10.5.0.195:3000/proyectos/shot-crafter-calculator:latest container_name: shot-crafter restart: unless-stopped ports: