Skip to content

Commit

Permalink
更新:调整CI构建运行条件
Browse files Browse the repository at this point in the history
  • Loading branch information
guobao2333 committed Sep 26, 2024
1 parent 7871cb4 commit 9f63b18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

build:
runs-on: ubuntu-latest
if: ${{ github.event.action == 'workflow_dispatch' || github.event.before != github.event.after }}
if: ${{ github.event.action == 'workflow_dispatch' || github.event.pull_request.user.login != github.repository.owner.login && github.event.before != github.event.after }}

permissions:
packages: write
Expand All @@ -40,7 +40,7 @@ jobs:
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -58,7 +58,6 @@ jobs:
type=semver,pattern={{version}}
type=ref,event=branch
type=ref,event=pr
type=sha
type=raw,value=${{ github.ref }},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=raw,value=latest,enable=${{ github.event.ref_type == 'tag' }}
Expand Down

0 comments on commit 9f63b18

Please sign in to comment.