Skip to content

Commit

Permalink
Merge pull request #821 from modelix/dependabot/github_actions/docker…
Browse files Browse the repository at this point in the history
…/build-push-action-6

build(deps): bump docker/build-push-action from 5 to 6
  • Loading branch information
odzhychko authored Jul 1, 2024
2 parents 7f84b6d + af9ca25 commit 8975762
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
permissions:
contents: read
packages: write
env:
# We only push the resulting image when we are on release tag (i.e., the only time we have a push event) or on
# manual request via the workflow_dispatch event.
PUSH: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -96,6 +100,8 @@ jobs:
IS_PR: ${{ github.event_name == 'pull_request' }}
# Try to log in early. If this fails, there's no reason to perform the remaining steps
- name: Log in to Docker Hub
# Only attempt to log in if we later attempt to push.
if: ${{ env.PUSH }}
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
Expand All @@ -107,11 +113,7 @@ jobs:
with:
platforms: linux/amd64,linux/arm64
- name: Build and publish model-server Docker image
uses: docker/build-push-action@v5
env:
# We only push the resulting image when we are on release tag (i.e., the only time we have a push event) or on
# manual request via the workflow_dispatch event.
PUSH: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' }}
uses: docker/build-push-action@v6
with:
context: ./model-server
file: ./model-server/Dockerfile
Expand Down

0 comments on commit 8975762

Please sign in to comment.