From 06d8ccd69ad29538150b22bfc20cef0c3736433e Mon Sep 17 00:00:00 2001 From: penguin Date: Sun, 7 Dec 2025 14:09:56 -0600 Subject: [PATCH] test ci --- .gitea/workflows/gentoo-utils.yml | 66 ++++++++++++++++--------------- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/.gitea/workflows/gentoo-utils.yml b/.gitea/workflows/gentoo-utils.yml index 77fcb80..4090bad 100644 --- a/.gitea/workflows/gentoo-utils.yml +++ b/.gitea/workflows/gentoo-utils.yml @@ -11,51 +11,53 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - - name: Checkout repo + - name: Checkout repo uses: actions/checkout@v5 with: fetch-depth: 0 + run: | + echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITEA_OUTPUT + cat $GITEA_OUTPUT + echo "Default branch name: ${{ gitea.event.repository.default_branch }}" - name: Check for changes before building id: image-changes run: | - if git diff ${{ gitea.event.before }} ${{ gitea.sha }} --no-patch --exit-code .docker; then + if git diff ${{ gitea.event.before }} ${{ gitea.sha }} --exit-code .docker; then echo changes_detected=true >> $GITEA_OUTPUT else echo changes_detected=false >> $GITEA_OUTPUT - fi - - - name: Set up Docker buildx + fi + - name: Set up Docker buildx if: steps.image-changes.outputs.changes_detected == 'true' uses: docker/setup-buildx-action@v3 - - - name: Log in to Github Container Registry - if: steps.image-changes.outputs.changes_detected == 'true' - uses: docker/login-action@v3 - with: - registry: git.epenguin.net - username: ${{ vars.CI_BOT_USERNAME }} - password: ${{ secrets.CI_BOT_TOKEN }} + # - + # name: Log in to Github Container Registry + # if: steps.image-changes.outputs.changes_detected == 'true' + # uses: docker/login-action@v3 + # with: + # registry: git.epenguin.net + # username: ${{ vars.CI_BOT_USERNAME }} + # password: ${{ secrets.CI_BOT_TOKEN }} - - - name: Build and push - if: steps.image-changes.outputs.changes_detected == 'true' - uses: docker/build-push-action@v6 - with: - push: true - tags: git.epenguin.net/${{ gitea.repository }}:latest - context: "{{defaultContext}}:.docker" + # - + # name: Build and push + # if: steps.image-changes.outputs.changes_detected == 'true' + # uses: docker/build-push-action@v6 + # with: + # push: true + # tags: git.epenguin.net/${{ gitea.repository }}:latest + # context: "{{defaultContext}}:.docker" - build: - runs-on: brutalisk - container: - image: git.epenguin.net/gentoo-utils/gentoo-utils-gitea:latest - needs: build-docker - steps: - - name: Checkout repo - uses: actions/checkout@v5 + # build: + # runs-on: brutalisk + # container: + # image: git.epenguin.net/gentoo-utils/gentoo-utils-gitea:latest + # needs: build-docker + # steps: + # - name: Checkout repo + # uses: actions/checkout@v5 - - name: build and check - run: ./check.sh + # - name: build and check + # run: ./check.sh