From eecea97f7c4e9d00359268b6d5f8c6b8555de092 Mon Sep 17 00:00:00 2001 From: Benjamin Brummer Date: Tue, 30 Sep 2025 12:37:35 +0200 Subject: [PATCH] Push README.md to Dockerhub --- .github/workflows/publish-image.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-image.yaml b/.github/workflows/publish-image.yaml index 70dc663..813fc87 100644 --- a/.github/workflows/publish-image.yaml +++ b/.github/workflows/publish-image.yaml @@ -34,11 +34,11 @@ jobs: MAJOR="$(echo "${VERSION}" | cut -d. -f1)" MINOR="$(echo "${VERSION}" | cut -d. -f2)" TAGS="$TAGS,${DOCKER_IMAGE}:${MAJOR},${DOCKER_IMAGE}:${MAJOR}.${MINOR}" - + # Debug output echo "Current version: ${VERSION}" echo "Version pattern check: $([[ $VERSION =~ ^5\.[0-9]{1,3}\.[0-9]{1,3}$ ]] && echo "matches" || echo "doesn't match")" - + TAGS="$TAGS,${DOCKER_IMAGE}:latest" echo "tags=${TAGS}" >> $GITHUB_OUTPUT # Updated output syntax @@ -69,3 +69,18 @@ jobs: - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} + + Description: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + with: + sparse-checkout: "README.md" + + - name: Docker Hub Description + uses: peter-evans/dockerhub-description@v4 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + repository: invoiceninja/invoiceninja-octane