From 42d21ab4ea685cf5b9005d750ed002167363c3b9 Mon Sep 17 00:00:00 2001 From: Rob Ashton Date: Fri, 15 Mar 2024 16:43:12 +0000 Subject: [PATCH] Use file instead of context --- .github/workflows/docker.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 390c2582..815e0c80 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -34,16 +34,17 @@ jobs: uses: docker/build-push-action@v5 if: github.event_name == 'pull_request' with: - context: "{{defaultContext}}:docker" + file: "{{defaultContext}}/docker/Dockerfile" push: true tags: | mrcide/naomi:${{steps.extract_branch.outputs.branch}} ghcr.io/${{github.repository}}:${{steps.extract_branch.outputs.branch}} - - name: Build and push + - name: Build and push prod containers uses: docker/build-push-action@v5 if: github.event_name != 'pull_request' with: + file: "{{defaultContext}}/docker/Dockerfile" push: true tags: | mrcide/naomi:latest