Skip to content

Update CI workflow to use latest versions of Docker Buildx and cache … #5

Update CI workflow to use latest versions of Docker Buildx and cache …

Update CI workflow to use latest versions of Docker Buildx and cache … #5

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Setup Earthly
uses: earthly/actions-setup@v1
- name: Run tests
run: earthly +test
- name: Build and save Docker image
run: earthly +build