From b8fe91579739f3d13962c565be6deec07470230c Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 21 Jul 2022 16:27:34 +0300 Subject: [PATCH] workflows: use path context for docker builds We have to checkout anyway for setvars step, so we can reuse the data instead of making yet another checkout. --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e165eacb..2b13cad1e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -111,6 +111,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v3 with: + context: . push: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true') }} platforms: linux/amd64,linux/arm64 build-args: |