From 3ac793465eb69607b8adc562dfbcc0c873705759 Mon Sep 17 00:00:00 2001 From: meyric Date: Tue, 12 Nov 2024 09:38:25 +0000 Subject: [PATCH] WIP: Attempt at building and caching the Docker image --- .github/workflows/continuous-integration.yml | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 3e5a0a40..2fa0c3e1 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -8,6 +8,28 @@ on: - develop jobs: + build-and-cache: + name: Build and cache image + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Build and cache image + uses: docker/build-push-action@v6 + with: + context: . + file: ./Dockerfile + build-args: RAILS_ENV=test + push: false + tags: app_test:latest + cache-from: type=gha + cache-to: type=gha,mode=min + test: runs-on: ubuntu-latest