diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8f3cd1f..3cfb5c6 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -12,5 +12,10 @@ jobs: run: docker build -t nakhodka-ai:latest -t nakhodka-ai:${{ github.sha }} ai-moderation - name: Restart ai-service run: docker compose -f /opt/nakhodka/docker-compose.yml up -d ai-service + - name: Push image to registry + run: | + IMG=git.nahodka-test.online/admin/nakhodka-ai + docker tag nakhodka-ai:${{ github.sha }} $IMG:${{ github.sha }} + docker push $IMG:${{ github.sha }} - name: Cleanup run: docker image prune -f \ No newline at end of file