diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index d17f2af..1438da5 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,9 +2,7 @@ name: Docker Image CI on: push: - branches: [ master ] - pull_request: - branches: [ master ] + branches: [ main ] jobs: @@ -23,3 +21,8 @@ jobs: run: | echo Building version ${{ steps.version.outputs.release_version }}... docker build . --file Dockerfile --tag alehoho/oo-ce-docker-license:${{ steps.version.outputs.release_version }} + + - name: Push Docker image + run: | + echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin + docker push alehoho/oo-ce-docker-license:${{ steps.version.outputs.release_version }} diff --git a/README.md b/README.md index 829301f..7c27488 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Patched ONLYOFFICE Docs (Community Edition) +[![Docker Image CI](https://github.com/aleho/onlyoffice-ce-docker-license/actions/workflows/docker-image.yml/badge.svg)](https://github.com/aleho/onlyoffice-ce-docker-license/actions/workflows/docker-image.yml) + ## Features This [Dockerfile](./Dockerfile) and [patch](license.patch) compile a version of