-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.36 KB
/
alpha-server.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Mini Server CI
on:
push:
branches: [ "alpha" ]
paths:
- '.github/workflows/alpha-server.yml'
- 'backend/**'
- 'cli/**'
- 'crypto-jvm/**'
- 'deploy/**'
- 'scripts/**'
- 'server/**'
- 'shared/**'
- 'gradle/**'
- '*.kts'
- 'Dockerfile'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
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/[email protected]
with:
key: docker-${{ runner.os }}-${{ hashFiles('Dockerfile', 'docker-image-in-test') }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build mini service
run: ./scripts/build_scripts/build-service-on-ci.sh