Skip to content

Complete #97 foundation strictness and links-defined fragments #28

Complete #97 foundation strictness and links-defined fragments

Complete #97 foundation strictness and links-defined fragments #28

Workflow file for this run

name: docker
on:
pull_request:
branches: [main]
paths:
- '.github/workflows/docker.yml'
- '.dockerignore'
- 'docker/**'
- 'js/**'
- 'rust/**'
- 'examples/**'
- 'lib/**'
- 'test-corpus/**'
- 'scripts/**'
push:
branches: [main]
paths:
- '.github/workflows/docker.yml'
- '.dockerignore'
- 'docker/**'
- 'js/**'
- 'rust/**'
- 'examples/**'
- 'lib/**'
- 'test-corpus/**'
- 'scripts/**'
workflow_dispatch:
jobs:
build-images:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build JavaScript image
uses: docker/build-push-action@v6
with:
context: .
file: docker/Dockerfile.js
tags: rml-js:ci
load: true
cache-from: type=gha,scope=rml-js
cache-to: type=gha,scope=rml-js,mode=max
- name: Smoke-test JavaScript image
run: docker run --rm rml-js:ci
- name: Build Rust image
uses: docker/build-push-action@v6
with:
context: .
file: docker/Dockerfile.rust
tags: rml-rust:ci
load: true
cache-from: type=gha,scope=rml-rust
cache-to: type=gha,scope=rml-rust,mode=max
- name: Smoke-test Rust image
run: docker run --rm rml-rust:ci
- name: Validate docker-compose configuration
run: docker compose -f docker/docker-compose.yml config