From 3506b9cdf15468d773a636e1cb7eb0631eeb0fd9 Mon Sep 17 00:00:00 2001 From: Aleksandr Soloshenko Date: Thu, 17 Apr 2025 18:54:31 +0700 Subject: [PATCH] [actions] disable build for dependabot --- .github/workflows/docker-build.yml | 5 ----- .github/workflows/docker-publish.yml | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 44e15ca..ca01791 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -47,14 +47,12 @@ jobs: - name: Log into Docker Hub uses: docker/login-action@v3 - if: github.actor != 'dependabot[bot]' with: username: ${{ secrets.username }} password: ${{ secrets.password }} - name: Login to Container registry uses: docker/login-action@v3 - if: github.actor != 'dependabot[bot]' with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -81,7 +79,6 @@ jobs: APP=${{ inputs.app-name }} APP_VERSION=${{ env.APP_VERSION }} APP_RELEASE_ID=${{ env.APP_RELEASE }} - push: ${{ github.actor != 'dependabot[bot]' }} labels: ${{ steps.meta.outputs.labels }} outputs: type=image,"name=${{ env.DOCKERHUB_REPO }},${{ env.GHCR_REPO }}",push-by-digest=true,name-canonical=true,push=true @@ -116,14 +113,12 @@ jobs: - name: Log into Docker Hub uses: docker/login-action@v3 - if: github.actor != 'dependabot[bot]' with: username: ${{ secrets.username }} password: ${{ secrets.password }} - name: Login to Container registry uses: docker/login-action@v3 - if: github.actor != 'dependabot[bot]' with: registry: ghcr.io username: ${{ github.repository_owner }} diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 1605320..0f52598 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -63,6 +63,7 @@ jobs: needs: - test - e2e + if: github.actor != 'dependabot[bot]' uses: ./.github/workflows/docker-build.yml with: app-name: sms-gateway