From 5dd618a67beca138c2d2dc8e5213dc29355ed84c Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 29 May 2024 09:59:16 +0200 Subject: [PATCH] Test docker in CI pipeline --- .github/workflows/ci.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7c379d28..6567d0ba 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,3 +42,33 @@ jobs: run: | # -n0 disables parallel tests for more stability pytest -n0 + + docker: + runs-on: ubuntu-latest + needs: + - test + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: | + datacontract/cli + tags: | + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + # linux/arm64 is disabled + # duckdb currently does not support linux_arm64_gcc4 + # https://duckdb.org/docs/extensions/working_with_extensions#platforms + platforms: linux/amd64,linux/arm64 + push: false