瀏覽代碼

ci: Fix image build workflow

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
Dave Tucker 3 年之前
父節點
當前提交
d55a47fb3d
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      .github/workflows/images.yml

+ 9 - 2
.github/workflows/images.yml

@@ -8,6 +8,13 @@ on:
       - 'main'
       - 'main'
     paths:
     paths:
       - 'images/**'
       - 'images/**'
+      - '.github/workflows/images.yml'
+  pull_request:
+    branches:
+      - 'main'
+    paths:
+      - 'images/**'
+      - '.github/workflows/images.yml'
 
 
 env:
 env:
   REGISTRY: ghcr.io
   REGISTRY: ghcr.io
@@ -39,8 +46,8 @@ jobs:
       - name: Build and push Docker image
       - name: Build and push Docker image
         uses: docker/build-push-action@v2
         uses: docker/build-push-action@v2
         with:
         with:
-          path: ./images
-          file: Dockerfile.rtf
+          context: images
+          file: images/Dockerfile.rtf
           push: true
           push: true
           tags: ${{ steps.meta.outputs.tags }}
           tags: ${{ steps.meta.outputs.tags }}
           labels: ${{ steps.meta.outputs.labels }}
           labels: ${{ steps.meta.outputs.labels }}