Skip to content

Commit

Permalink
add automatic build + push for the CRF light image
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Jan 12, 2024
1 parent 30780ef commit 69fcecb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci-build-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,25 @@ jobs:
format: jacoco
file: build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml
debug: true

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@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.crf
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 69fcecb

Please sign in to comment.