From 5a8d94c50dceffbe1586a17f216ee181b8076b58 Mon Sep 17 00:00:00 2001 From: Robert Taylor Date: Mon, 24 Jul 2023 15:27:35 +0000 Subject: [PATCH] Use docker metadata extract to find tag --- .github/workflows/wheels.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 41a36049..ad4d3db4 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -120,6 +120,12 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 #v4.6.0 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - name: Build wheels uses: pypa/cibuildwheel@66b46d086804a9e9782354100d96a3a445431bca # v2.14.0 env: @@ -129,7 +135,7 @@ jobs: CIBW_CONTAINER_ENGINE: "docker; create_args: '--volume=${{ github.workspace }}/.ccache:/.ccache'" # overriede before-all in pyproject.toml CIBW_BEFORE_ALL: "" - CIBW_MANYLINUX_X86_64_IMAGE: ghcr.io/chipflow/coriolis-manylinux2014:${{ github.ref_name }} + CIBW_MANYLINUX_X86_64_IMAGE: ${{ steps.meta.outputs.tags }} - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 with: