Skip to content

Commit

Permalink
build the docker image automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Jan 4, 2025
1 parent 79ce786 commit defffe3
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,27 @@ jobs:
run: ./gradlew copyModels
- name: Build entity-fishing with Gradle
working-directory: entity-fishing
run: ./gradlew build -x test
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 }}

0 comments on commit defffe3

Please sign in to comment.