From 99abd784952dab3283c3b2bd7d373e2136a72585 Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Mon, 30 Mar 2026 00:13:39 +0200 Subject: [PATCH] remove git action --- .gitea/workflows/docker.yml | 126 ------------------------------------ 1 file changed, 126 deletions(-) delete mode 100644 .gitea/workflows/docker.yml diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml deleted file mode 100644 index 79d7487..0000000 --- a/.gitea/workflows/docker.yml +++ /dev/null @@ -1,126 +0,0 @@ -name: Build and Push Docker Images - -on: - push: - branches: - - main - -jobs: - build-app: - name: Build app image - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 2 - - - name: Check if app image should be rebuilt - id: changed - run: | - # Rebuild if docker/app/ or any PHP/config source changed - CHANGED=$(git diff --name-only HEAD~1 HEAD | grep -E '^(docker/app/|src/|config/|templates/|migrations/|composer\.(json|lock)|symfony\.lock|\.env)' | wc -l) - echo "changed=$([ "$CHANGED" -gt 0 ] && echo true || echo false)" >> $GITHUB_OUTPUT - - - name: Set up Docker Buildx - if: steps.changed.outputs.changed == 'true' - uses: docker/setup-buildx-action@v3 - - - name: Login to Gitea registry - if: steps.changed.outputs.changed == 'true' - uses: docker/login-action@v3 - with: - registry: git.lclr.dev - username: ${{ github.actor }} - password: ${{ secrets.GITEA_TOKEN }} - - - name: Build and push app - if: steps.changed.outputs.changed == 'true' - uses: docker/build-push-action@v6 - with: - context: . - file: docker/app/Dockerfile - target: prod - push: true - tags: | - git.lclr.dev/thibaud-lclr/ltbxd-actorle/app:latest - git.lclr.dev/thibaud-lclr/ltbxd-actorle/app:${{ github.sha }} - cache-from: type=registry,ref=git.lclr.dev/thibaud-lclr/ltbxd-actorle/app:buildcache - cache-to: type=registry,ref=git.lclr.dev/thibaud-lclr/ltbxd-actorle/app:buildcache,mode=max - - build-database: - name: Build database image - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 2 - - - name: Check if database image should be rebuilt - id: changed - run: | - CHANGED=$(git diff --name-only HEAD~1 HEAD | grep -q '^docker/database/' && echo true || echo false) - echo "changed=$CHANGED" >> $GITHUB_OUTPUT - - - name: Set up Docker Buildx - if: steps.changed.outputs.changed == 'true' - uses: docker/setup-buildx-action@v3 - - - name: Login to Gitea registry - if: steps.changed.outputs.changed == 'true' - uses: docker/login-action@v3 - with: - registry: git.lclr.dev - username: ${{ github.actor }} - password: ${{ secrets.GITEA_TOKEN }} - - - name: Build and push database - if: steps.changed.outputs.changed == 'true' - uses: docker/build-push-action@v6 - with: - context: docker/database - push: true - tags: | - git.lclr.dev/thibaud-lclr/ltbxd-actorle/database:latest - git.lclr.dev/thibaud-lclr/ltbxd-actorle/database:${{ github.sha }} - cache-from: type=registry,ref=git.lclr.dev/thibaud-lclr/ltbxd-actorle/database:buildcache - cache-to: type=registry,ref=git.lclr.dev/thibaud-lclr/ltbxd-actorle/database:buildcache,mode=max - - build-node: - name: Build node image - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 2 - - - name: Check if node image should be rebuilt - id: changed - run: | - CHANGED=$(git diff --name-only HEAD~1 HEAD | grep -E '^(docker/node/|assets/|package(-lock)?\.json|vite\.config\.js)' | wc -l) - echo "changed=$([ "$CHANGED" -gt 0 ] && echo true || echo false)" >> $GITHUB_OUTPUT - - - name: Set up Docker Buildx - if: steps.changed.outputs.changed == 'true' - uses: docker/setup-buildx-action@v3 - - - name: Login to Gitea registry - if: steps.changed.outputs.changed == 'true' - uses: docker/login-action@v3 - with: - registry: git.lclr.dev - username: ${{ github.actor }} - password: ${{ secrets.GITEA_TOKEN }} - - - name: Build and push node - if: steps.changed.outputs.changed == 'true' - uses: docker/build-push-action@v6 - with: - context: . - file: docker/node/Dockerfile - target: dev - push: true - tags: | - git.lclr.dev/thibaud-lclr/ltbxd-actorle/node:latest - git.lclr.dev/thibaud-lclr/ltbxd-actorle/node:${{ github.sha }} - cache-from: type=registry,ref=git.lclr.dev/thibaud-lclr/ltbxd-actorle/node:buildcache - cache-to: type=registry,ref=git.lclr.dev/thibaud-lclr/ltbxd-actorle/node:buildcache,mode=max