From e4063d79da4337078da027f599f9442efc27f1d6 Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Thu, 18 Nov 2021 10:47:04 +0100 Subject: [PATCH] chore: remove now useless dockerignore file for concretefhe-env - trigger build only if the env Dockerfile itself is modified (match line end to be sure we don't match something else) - add missing build-args for docker prefligth build --- .github/workflows/continuous-integration.yaml | 11 +++++++---- docker/Dockerfile.concretefhe-env.dockerignore | 1 - 2 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 docker/Dockerfile.concretefhe-env.dockerignore diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 79d3cef93..da285bd1a 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -50,6 +50,9 @@ jobs: force-rebuild-docker: ${{ env.FORCE_REBUILD_DOCKER }} report: ${{ steps.report.outputs.report || 'Did not run.' }} + env: + WHEEL: concretefhe_compiler-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl + steps: - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 with: @@ -75,12 +78,12 @@ jobs: echo "Changed files:" echo "${ALL_CHANGED_FILES}" - echo "::set-output name=all::${ALL_CHANGED_FILES//$'\n'/ }" + echo "::set-output name=all::${ALL_CHANGED_FILES}" - name: Should rebuild docker check run: | set +e - echo "${{ steps.files.outputs.all }}" | grep "${ENV_DOCKERFILE}" + echo "${{ steps.files.outputs.all }}" | grep "${ENV_DOCKERFILE}$" DOCKERFILE_CHANGED=$? if [[ "${DOCKERFILE_CHANGED}" == "0" || "${FORCE_REBUILD_DOCKER}" == "true" ]]; then echo "Should rebuild docker image!" @@ -94,8 +97,6 @@ jobs: - name: Set prefligh Docker image download compiler id: set_image if: ${{ fromJSON(env.BUILD_DOCKER) }} - env: - WHEEL: concretefhe_compiler-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl run: | PREFLIGHT_IMAGE_TAG=$(echo ${{ github.ref }} | sed -e 's/\//-/g') PREFLIGHT_IMAGE="${PREFLIGHT_IMAGE_BASE}-${PREFLIGHT_IMAGE_TAG}" @@ -132,6 +133,8 @@ jobs: with: context: . # builder: ${{ steps.buildx.outputs.name }} + build-args: | + WHEEL=${{ env.WHEEL }} file: docker/Dockerfile.concretefhe-env no-cache: true push: true diff --git a/docker/Dockerfile.concretefhe-env.dockerignore b/docker/Dockerfile.concretefhe-env.dockerignore deleted file mode 100644 index 12baba301..000000000 --- a/docker/Dockerfile.concretefhe-env.dockerignore +++ /dev/null @@ -1 +0,0 @@ -!script/actions_utils/gh_dl_release.sh