diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e3ddcce..7a5e7a7 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -42,25 +42,19 @@ jobs: if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/master' steps: - uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Log in to registry - uses: docker/login-action@v3 + - name: Build and push frontend with Kaniko + uses: aevea/action-kaniko@v0.9.0 with: registry: registry.bk.glpx.pro username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push frontend - uses: docker/build-push-action@v5 - with: + image: turash/turash-frontend + tag: latest,${{ gitea.sha }} + cache: true + cache_registry: registry.bk.glpx.pro/turash/turash-frontend context: bugulma/frontend - file: bugulma/frontend/Dockerfile - push: true - tags: | - registry.bk.glpx.pro/turash/turash-frontend:latest - registry.bk.glpx.pro/turash/turash-frontend:${{ gitea.sha }} - cache-from: type=registry,ref=registry.bk.glpx.pro/turash/turash-frontend:buildcache - cache-to: type=registry,ref=registry.bk.glpx.pro/turash/turash-frontend:buildcache,mode=max + dockerfile: bugulma/frontend/Dockerfile + kaniko_executor_image: gcr.io/kaniko-project/executor:debug-v1.24.0 backend-lint: runs-on: ubuntu-latest @@ -111,25 +105,19 @@ jobs: if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/master' steps: - uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Log in to registry - uses: docker/login-action@v3 + - name: Build and push backend with Kaniko + uses: aevea/action-kaniko@v0.9.0 with: registry: registry.bk.glpx.pro username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push backend - uses: docker/build-push-action@v5 - with: + image: turash/turash-backend + tag: latest,${{ gitea.sha }} + cache: true + cache_registry: registry.bk.glpx.pro/turash/turash-backend context: bugulma/backend - file: bugulma/backend/Dockerfile - push: true - tags: | - registry.bk.glpx.pro/turash/turash-backend:latest - registry.bk.glpx.pro/turash/turash-backend:${{ gitea.sha }} - cache-from: type=registry,ref=registry.bk.glpx.pro/turash/turash-backend:buildcache - cache-to: type=registry,ref=registry.bk.glpx.pro/turash/turash-backend:buildcache,mode=max + dockerfile: bugulma/backend/Dockerfile + kaniko_executor_image: gcr.io/kaniko-project/executor:debug-v1.24.0 e2e-test: runs-on: ubuntu-latest