From 2b099a6b2cce061fbe8566636d0f4f452a376ea7 Mon Sep 17 00:00:00 2001 From: siujamo Date: Mon, 8 Jun 2026 14:56:54 +0800 Subject: [PATCH] fix: use update-container-description-action instead of raw docker-pushrm The raw docker run with docker-pushrm keeps failing due to WORKDIR / mount path mismatches. Replace with the official GitHub Action wrapper from the same author, which handles the internals correctly. --- .gitea/workflows/build-and-deploy.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index a1e400c..caed485 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -76,10 +76,11 @@ jobs: ${{ steps.meta.outputs.tag_latest }} - name: Push README to Docker Hub - run: > - docker run --rm - -v "$(pwd)/README.md:/README.md:ro" - -e DOCKER_USER="${{ vars.DOCKER_HUB_USERNAME }}" - -e DOCKER_PASS="${{ secrets.DOCKER_HUB_TOKEN }}" - chko/docker-pushrm:latest - "${{ vars.DOCKER_HUB_USERNAME }}/${{ env.APP_NAME }}" + uses: christian-korneck/update-container-description-action@v1 + env: + DOCKER_USER: ${{ vars.DOCKER_HUB_USERNAME }} + DOCKER_PASS: ${{ secrets.DOCKER_HUB_TOKEN }} + with: + destination_container_repo: ${{ vars.DOCKER_HUB_USERNAME }}/${{ env.APP_NAME }} + provider: dockerhub + readme_file: README.md