Skip to content

fix: enable docker cache #2

fix: enable docker cache

fix: enable docker cache #2

Workflow file for this run

name: Mini Server CI
on:
push:
branches: [ "alpha" ]
paths:
- '.github/workflows/alpha-server.yml'
- 'backend/**'
- 'cli/**'
- 'crypto-jvm/**'
- 'deploy/**'
- 'scripts/**'
- 'server/**'
- 'shared/**'
- 'gradle/**'
jobs:
build:
runs-on: ubuntu-latest
environment: mini
env:
# this will take the entire vars context configured in the repository > environments
# setting and convert it to JSON so we can automatically assign all the values to the
# runner's environment
VARS_CONTEXT: ${{ toJson(vars) }}
SECRETS_CONTEXT: ${{ toJson(secrets) }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Cache Docker images.
uses: ScribeMD/docker-cache@0.5.0
with:
key: docker-${{ runner.os }}-${{ hashFiles(paths) }}

Check failure on line 40 in .github/workflows/alpha-server.yml

View workflow run for this annotation

GitHub Actions / Mini Server CI

Invalid workflow file

The workflow is not valid. .github/workflows/alpha-server.yml (Line: 40, Col: 16): Unrecognized named-value: 'paths'. Located at position 11 within expression: hashFiles(paths)
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build mini service
run: ./scripts/build_scripts/build-service-on-ci.sh