diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-31 16:04:45 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-31 16:20:42 +0100 |
commit | 61ff3850ea71b0cced918d3bcb71dcf75c4b9339 (patch) | |
tree | 0afff7bec61862f13617144d5a38de077f849970 /.github/workflows/ci.yml | |
parent | workflows/ci: fix Python 3.6 tests (diff) | |
download | void-61ff3850ea71b0cced918d3bcb71dcf75c4b9339.tar.gz void-61ff3850ea71b0cced918d3bcb71dcf75c4b9339.zip |
workflows/ci: respect .dockerignore
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/ci.yml | 5 |
1 files changed, 5 insertions, 0 deletions
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 }}' |