[actions] disable build for dependabot

This commit is contained in:
Aleksandr Soloshenko 2025-04-17 18:54:31 +07:00 committed by Aleksandr
parent 747edc8f9c
commit 3506b9cdf1
2 changed files with 1 additions and 5 deletions

View File

@ -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 }}

View File

@ -63,6 +63,7 @@ jobs:
needs:
- test
- e2e
if: github.actor != 'dependabot[bot]'
uses: ./.github/workflows/docker-build.yml
with:
app-name: sms-gateway