From b62e7430b277a014eaf337f946daa5844a418bf2 Mon Sep 17 00:00:00 2001 From: RaeCheol Park <41039751+raeperd@users.noreply.github.com> Date: Fri, 3 Jul 2026 00:37:48 +0900 Subject: [PATCH 1/3] Skip image publishing for Dependabot pushes --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 974b01c..4580f14 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,14 +28,14 @@ jobs: path: build/libs/*.jar - uses: docker/login-action@v4 - if: github.event_name == 'push' + if: github.event_name == 'push' && github.actor != 'dependabot[bot]' with: registry: ghcr.io/raeperd username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Get branch name - if: github.event_name == 'push' + if: github.event_name == 'push' && github.actor != 'dependabot[bot]' run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr /# -)" >> $GITHUB_ENV - name: Build container image - if: github.event_name == 'push' - run: ./gradlew jib -Djib.to.tags=${{ env.BRANCH_NAME }} \ No newline at end of file + if: github.event_name == 'push' && github.actor != 'dependabot[bot]' + run: ./gradlew jib -Djib.to.tags=${{ env.BRANCH_NAME }} From 05c642934aec3c7dd886f67286c3a7a1ef58ef3f Mon Sep 17 00:00:00 2001 From: RaeCheol Park <41039751+raeperd@users.noreply.github.com> Date: Fri, 3 Jul 2026 00:44:32 +0900 Subject: [PATCH 2/3] Update .github/workflows/build.yml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/build.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4580f14..8d7201c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,9 +33,6 @@ jobs: registry: ghcr.io/raeperd username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Get branch name - if: github.event_name == 'push' && github.actor != 'dependabot[bot]' - run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr /# -)" >> $GITHUB_ENV - name: Build container image if: github.event_name == 'push' && github.actor != 'dependabot[bot]' - run: ./gradlew jib -Djib.to.tags=${{ env.BRANCH_NAME }} + run: ./gradlew jib -Djib.to.tags="$BRANCH_NAME" From a4eb7876f94e614504535a7b852ea1ac76df1e00 Mon Sep 17 00:00:00 2001 From: "raeperd.park" Date: Fri, 3 Jul 2026 07:58:22 +0900 Subject: [PATCH 3/3] Fix image branch tag in CI --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d7201c..8393601 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,11 @@ jobs: registry: ghcr.io/raeperd username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Get branch name + if: github.event_name == 'push' && github.actor != 'dependabot[bot]' + run: | + BRANCH_NAME=$(printf '%s' "$GITHUB_REF_NAME" | tr '/#' '-') + echo "BRANCH_NAME=$BRANCH_NAME" >> "$GITHUB_ENV" - name: Build container image if: github.event_name == 'push' && github.actor != 'dependabot[bot]' run: ./gradlew jib -Djib.to.tags="$BRANCH_NAME"