Complete #97 foundation strictness and links-defined fragments #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |