Skip to content

Commit

Permalink
Add additional github actions (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano authored May 7, 2024
1 parent 664824d commit 9ad69ee
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 3 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/ci-build-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Build and push a development version on docker

on:
workflow_dispatch:


jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17.0.10+7'
distribution: 'temurin'
cache: 'gradle'
- name: Build with Gradle
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@v2
- 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/grobid
registry: docker.io
pushImage: true
tags: latest-develop, latest-crf
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

docker-build-full:
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@v2
- name: Build and push
id: docker_build
uses: mr-smithers-excellent/docker-build-push@v5
with:
username: ${{ secrets.DOCKERHUB_USERNAME_LFOPPIANO }}
password: ${{ secrets.DOCKERHUB_TOKEN_LFOPPIANO }}
image: lfoppiano/grobid
registry: docker.io
pushImage: true
tags: latest-full
dockerfile: Dockerfile.delft
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
28 changes: 25 additions & 3 deletions .github/workflows/ci-build-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
file: build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml
debug: true

docker-build:
docker-build-crf:
needs: [ build ]
runs-on: ubuntu-latest

Expand All @@ -50,7 +50,29 @@ jobs:
image: lfoppiano/grobid
registry: docker.io
pushImage: ${{ github.event_name != 'pull_request' }}
tags: latest-develop
tags: latest-develop, latest-crf
dockerfile: Dockerfile.crf
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
run: echo ${{ steps.docker_build.outputs.digest }}

# docker-build-full:
# 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@v2
# - name: Build and push
# id: docker_build
# uses: mr-smithers-excellent/docker-build-push@v5
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME_LFOPPIANO }}
# password: ${{ secrets.DOCKERHUB_TOKEN_LFOPPIANO }}
# image: lfoppiano/grobid
# registry: docker.io
# pushImage: ${{ github.event_name != 'pull_request' }}
# tags: latest-develop
# dockerfile: Dockerfile.delft
# - name: Image digest
# run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 9ad69ee

Please sign in to comment.