Skip to content

Commit

Permalink
Merge pull request #441 from miurla/ci/optimize-docker-workflow
Browse files Browse the repository at this point in the history
ci: optimize docker build workflow
  • Loading branch information
miurla authored Feb 16, 2025
2 parents ad79657 + 60e1734 commit 004c5d9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Docker Build and Push
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
Expand All @@ -24,7 +22,6 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -36,7 +33,7 @@ jobs:
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.sha }}
Expand Down

0 comments on commit 004c5d9

Please sign in to comment.