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.
This commit is contained in:
Roman Khimov 2022-07-21 16:27:34 +03:00
parent 5773bc9da6
commit b8fe915797

View file

@ -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: |