From bbabfe72ab655b3aecd3500cc30652e98c239898 Mon Sep 17 00:00:00 2001 From: Alexander Hofbauer Date: Sun, 16 May 2021 17:08:47 +0200 Subject: [PATCH] Push built image (from main) to dockerhub --- .github/workflows/docker-image.yml | 9 ++++++--- README.md | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) 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