diff --git a/.gitea/workflows/base-build.yml b/.gitea/workflows/base-build.yml index 362640a..6b8a542 100644 --- a/.gitea/workflows/base-build.yml +++ b/.gitea/workflows/base-build.yml @@ -125,6 +125,10 @@ jobs: runs-on: docker-build2 steps: + - name: Clone repo with token auth + run: | + git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo + - name: Generate build-info.json run: | cd upload-repo @@ -152,15 +156,17 @@ jobs: - name: Commit build-info.json run: | + cd upload-repo git config user.name "${{ secrets.GIT_USERNAME }}" git config user.email "${{ secrets.GIT_EMAIL }}" git add "${{ env.OUTPUT_DIR }}/build-info.json" if git status --porcelain | grep .; then git commit -m "Update build-info for latest" - git push + git push https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git git tag -d "build-latest" 2>/dev/null || true git tag "build-latest" - git push origin "build-latest" --force + git push https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git --tags fi +