diff --git a/.gitea/workflows/base-build.yml b/.gitea/workflows/base-build.yml index 1230036..ef1b3f4 100644 --- a/.gitea/workflows/base-build.yml +++ b/.gitea/workflows/base-build.yml @@ -5,6 +5,7 @@ on: branches: - main paths: + - '.gitea/workflows/*.yml' - '!**/CHANGES.md' - '!**/build-info.json' schedule: @@ -37,8 +38,8 @@ jobs: - name: Show tarball run: ls -lh ${{ env.OUTPUT_TAR }} - - name: Clone upload repo - run: git clone https://gitea.fithwum.tech/fithwum/alpine-base.git upload-repo + - 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: Copy and push tarball run: | @@ -66,11 +67,10 @@ jobs: steps: - name: Build and push Docker image - run: | - echo "${{ secrets.DOCKER_PASSWORD }}" | docker login gitea.fithwum.tech -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin + run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login gitea.fithwum.tech -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin - - name: Clone upload repo - run: git clone https://gitea.fithwum.tech/fithwum/alpine-base.git upload-repo + - 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: Build and push Docker image run: | @@ -84,11 +84,9 @@ jobs: update-changelog: needs: push-docker runs-on: vm-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 + run: git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo - name: Update CHANGES.md run: | @@ -125,8 +123,7 @@ jobs: 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 + 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: | @@ -167,5 +164,4 @@ jobs: git tag -d "build-latest" 2>/dev/null || true git tag "build-latest" git push https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git --tags - fi - + fi \ No newline at end of file