Skip to content

Commit

Permalink
Merge pull request #4 from joshjohanning-org/skip-dependabot-push
Browse files Browse the repository at this point in the history
skip dependabot push
  • Loading branch information
joshjohanning authored Aug 23, 2023
2 parents b39161b + 4a34c08 commit 71e5b30
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ on:
default: "Dockerfile"
secrets:
registry_password:
required: true
required: false

jobs:
docker-build:
name: docker-build
runs-on: ${{ inputs.runs-on }}

permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3

Expand All @@ -48,11 +51,10 @@ jobs:
registry: ${{ inputs.image-repository }}
username: ${{ github.actor }}
password: ${{ secrets.github_token }}

- name: Push the docker Image
if: github.actor != 'dependabot[bot]'
run: |
docker push ${{ inputs.image-repository }}/${{ inputs.image-name }}:${{ inputs.image-tag }}
docker tag ${{ inputs.image-repository }}/${{ inputs.image-name }}:${{ inputs.image-tag }} ${{ inputs.image-repository }}/${{ inputs.image-name }}:latest
docker push ${{ inputs.image-repository }}/${{ inputs.image-name }}:latest

0 comments on commit 71e5b30

Please sign in to comment.