Skip to content

Commit

Permalink
WIP: Attempt at building and caching the Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
mec committed Nov 12, 2024
1 parent 87250c5 commit 3ac7934
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3ac7934

Please sign in to comment.