-
Notifications
You must be signed in to change notification settings - Fork 24
68 lines (61 loc) · 1.86 KB
/
ci-build.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build unstable
on: [push, workflow_dispatch]
concurrency:
group: gradle
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout grobid home
uses: actions/checkout@v4
with:
repository: kermitt2/grobid
ref: 0.8.1
path: ./grobid
- name: Checkout grobid-ner
uses: actions/checkout@v4
with:
repository: kermitt2/grobid-ner
path: ./grobid/grobid-ner
- name: Checkout entity-fishing
uses: actions/checkout@v4
with:
path: ./entity-fishing
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
cache: 'gradle'
- name: Build grobid
working-directory: grobid
run: ./gradlew install -x test
- name: Build grobid-ner
working-directory: grobid/grobid-ner
run: ./gradlew install -x test
- name: Install grobid-ner
working-directory: grobid/grobid-ner
run: ./gradlew copyModels
- name: Build entity-fishing with Gradle
working-directory: entity-fishing
run: ./gradlew build -x test
docker-build:
needs: [ build ]
runs-on: ubuntu-latest
steps:
- name: Create more disk space
run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v4
- name: Build and push
id: docker_build
uses: mr-smithers-excellent/docker-build-push@v6
with:
dockerfile: Dockerfile
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
image: lfoppiano/entity-fishing
registry: docker.io
pushImage: false
tags: latest-develop
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}