From 61ff3850ea71b0cced918d3bcb71dcf75c4b9339 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 31 Jan 2023 16:04:45 +0100 Subject: workflows/ci: respect .dockerignore --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e817690..433be82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,8 @@ jobs: name: 'Publish: Docker Hub' if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) steps: + - name: Checkout + uses: actions/checkout@v3 - id: meta name: Docker Hub metadata uses: docker/metadata-action@v4 @@ -50,6 +52,9 @@ jobs: - name: Build and publish uses: docker/build-push-action@v3 with: + # Without context, .dockerignore is not respected? + # https://stackoverflow.com/a/74552407/514684 + context: . push: true tags: '${{ steps.meta.outputs.tags }}' labels: '${{ steps.meta.outputs.labels }}' -- cgit v1.2.3