From f66bfeef254c6b21e5f500cb490b88ca1bab104a Mon Sep 17 00:00:00 2001 From: Ignacio Perez Date: Mon, 20 Jan 2025 16:05:45 -0300 Subject: [PATCH 1/8] test --- .github/workflows/ci.yml | 8 +++++--- app/controllers/api/v1/health_controller.rb | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec238678..c3897a14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,12 @@ name: CI on: - workflow_dispatch: - pull_request: push: - branches: [main] +# on: +# workflow_dispatch: +# pull_request: +# push: +# branches: [main] permissions: pull-requests: write diff --git a/app/controllers/api/v1/health_controller.rb b/app/controllers/api/v1/health_controller.rb index 8354b410..3ee2b98e 100644 --- a/app/controllers/api/v1/health_controller.rb +++ b/app/controllers/api/v1/health_controller.rb @@ -7,7 +7,7 @@ class HealthController < API::V1::APIController skip_after_action :verify_authorized def status - render json: { online: true } + render json: { online: true, test: true } end end end From 0e3acb1bd25fd21cc52413d70c219ac3b56a876f Mon Sep 17 00:00:00 2001 From: Ignacio Perez Date: Mon, 20 Jan 2025 16:11:13 -0300 Subject: [PATCH 2/8] Test --- app/controllers/api/v1/health_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/health_controller.rb b/app/controllers/api/v1/health_controller.rb index 3ee2b98e..8354b410 100644 --- a/app/controllers/api/v1/health_controller.rb +++ b/app/controllers/api/v1/health_controller.rb @@ -7,7 +7,7 @@ class HealthController < API::V1::APIController skip_after_action :verify_authorized def status - render json: { online: true, test: true } + render json: { online: true } end end end From ab9e94bec42a95128320478116b07eea896169ea Mon Sep 17 00:00:00 2001 From: Ignacio Perez Date: Mon, 20 Jan 2025 16:12:44 -0300 Subject: [PATCH 3/8] Change to gha cache --- .github/workflows/ci.yml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3897a14..357a1edc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,32 +27,16 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Cache Docker layers - uses: actions/cache@v4 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.head_ref || github.ref_name }}-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx-${{ github.head_ref || github.ref_name }} - ${{ runner.os }}-buildx-main - ${{ runner.os }}-buildx- - - name: Build prod Docker image uses: docker/build-push-action@v6 with: push: false - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + cache-from: | + type=gha,scope=${{ github.ref_name }} + type=gha,ref=main + cache-to: type=gha,scope=${{ github.ref_name }},mode=max file: Dockerfile - - # Temp fix - # https://github.com/docker/build-push-action/issues/252 - # https://github.com/moby/buildkit/issues/1896 - name: Move cache - run: | - rm -rf /tmp/.buildx-cache - mv /tmp/.buildx-cache-new /tmp/.buildx-cache - linters: name: Linters runs-on: ubuntu-latest From 2c85aba38a92edf044bb32cf40a80f6e4859a9bc Mon Sep 17 00:00:00 2001 From: Ignacio Perez Date: Mon, 20 Jan 2025 16:16:43 -0300 Subject: [PATCH 4/8] Test 2 --- app/controllers/api/v1/health_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/health_controller.rb b/app/controllers/api/v1/health_controller.rb index 8354b410..3ee2b98e 100644 --- a/app/controllers/api/v1/health_controller.rb +++ b/app/controllers/api/v1/health_controller.rb @@ -7,7 +7,7 @@ class HealthController < API::V1::APIController skip_after_action :verify_authorized def status - render json: { online: true } + render json: { online: true, test: true } end end end From d90e6f543f997ac6fca4c704473d0f6661a62213 Mon Sep 17 00:00:00 2001 From: Ignacio Perez Date: Mon, 20 Jan 2025 16:18:50 -0300 Subject: [PATCH 5/8] Remove test --- app/controllers/api/v1/health_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/health_controller.rb b/app/controllers/api/v1/health_controller.rb index 3ee2b98e..8354b410 100644 --- a/app/controllers/api/v1/health_controller.rb +++ b/app/controllers/api/v1/health_controller.rb @@ -7,7 +7,7 @@ class HealthController < API::V1::APIController skip_after_action :verify_authorized def status - render json: { online: true, test: true } + render json: { online: true } end end end From cb31329c58abe99b1f447692d1d72593ac2ebe03 Mon Sep 17 00:00:00 2001 From: Ignacio Perez Date: Mon, 20 Jan 2025 16:22:43 -0300 Subject: [PATCH 6/8] Remove test changes --- .github/workflows/ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 357a1edc..68a4fd44 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,10 @@ name: CI on: + workflow_dispatch: + pull_request: push: -# on: -# workflow_dispatch: -# pull_request: -# push: -# branches: [main] + branches: [main] permissions: pull-requests: write From 393cc5513e271f1312412e79721185e24e7a8a0a Mon Sep 17 00:00:00 2001 From: Ignacio Perez Date: Mon, 20 Jan 2025 16:42:16 -0300 Subject: [PATCH 7/8] Another test change --- app/controllers/api/v1/health_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/health_controller.rb b/app/controllers/api/v1/health_controller.rb index 8354b410..3ee2b98e 100644 --- a/app/controllers/api/v1/health_controller.rb +++ b/app/controllers/api/v1/health_controller.rb @@ -7,7 +7,7 @@ class HealthController < API::V1::APIController skip_after_action :verify_authorized def status - render json: { online: true } + render json: { online: true, test: true } end end end From 08d355121e407129a986b151d6099b0cb21b4ce7 Mon Sep 17 00:00:00 2001 From: Ignacio Perez Date: Mon, 20 Jan 2025 16:43:51 -0300 Subject: [PATCH 8/8] Remove changes --- app/controllers/api/v1/health_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/health_controller.rb b/app/controllers/api/v1/health_controller.rb index 3ee2b98e..8354b410 100644 --- a/app/controllers/api/v1/health_controller.rb +++ b/app/controllers/api/v1/health_controller.rb @@ -7,7 +7,7 @@ class HealthController < API::V1::APIController skip_after_action :verify_authorized def status - render json: { online: true, test: true } + render json: { online: true } end end end