From f6cc056d5941840f928389a295a4bf160605ded2 Mon Sep 17 00:00:00 2001 From: penguin Date: Sun, 7 Dec 2025 14:19:13 -0600 Subject: [PATCH] test ci --- .gitea/workflows/gentoo-utils.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/gentoo-utils.yml b/.gitea/workflows/gentoo-utils.yml index 0698cad..b14b737 100644 --- a/.gitea/workflows/gentoo-utils.yml +++ b/.gitea/workflows/gentoo-utils.yml @@ -7,7 +7,7 @@ on: branches: [master] jobs: - build-docker: + build-oci-image: runs-on: ubuntu-latest continue-on-error: true steps: @@ -15,19 +15,21 @@ jobs: 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: | + echo "${GITEA_REF#refs/heads/}" + echo "${GITHUB_REF#refs/heads/}" + echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITEA_OUTPUT + echo "default_branch_name=${{ gitea.event.repository.default_branch }}" >> $GITEA_OUTPUT 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 + cat $GITEA_OUTPUT - name: Set up Docker buildx if: steps.image-changes.outputs.changes_detected == 'true' uses: docker/setup-buildx-action@v3 @@ -54,7 +56,7 @@ jobs: # runs-on: brutalisk # container: # image: git.epenguin.net/gentoo-utils/gentoo-utils-gitea:latest - # needs: build-docker + # needs: build-oci-image # steps: # - name: Checkout repo # uses: actions/checkout@v5