瀏覽代碼

CI Docker: don't build full image on pull request

it will fail since the slim tag is not pushed
Nicola Murino 4 年之前
父節點
當前提交
ff73e5f53c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      .github/workflows/docker.yml

+ 1 - 0
.github/workflows/docker.yml

@@ -154,6 +154,7 @@ jobs:
             org.opencontainers.image.licenses=${{ fromJson(steps.repo.outputs.result).license.spdx_id }}
 
       - name: Build and push full
+        if: ${{ github.event_name != 'pull_request' }}
         uses: docker/build-push-action@v2
         with:
           builder: ${{ steps.builder-full.outputs.name }}