Skip to content

GitHub actions docker ci #1

GitHub actions docker ci

GitHub actions docker ci #1

Workflow file for this run

name: docker-ci
on:
push:
branches: [ master, main, fix ]
pull_request:
branches: [ master, main, fix ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build Docker image
run: |
docker build -f .devops/ci.Dockerfile -t llamafile_ci .
- name: Run Docker container
run: |
docker run llamafile_ci