diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 838511750..f468732ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: - name: Install run: | pip install --upgrade pip==20.1.1 - pip install -i "${{ secrets.INDEX_URL }}" -r requirements/full_requirements.txt + pip install --extra-index-url "${{ secrets.INDEX_URL }}" -r requirements/full_requirements.txt pip install -r requirements/test_requirements.txt - name: Test ${{ matrix.component }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4cb8c62b..62f9e9f68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: run: | pip install --upgrade pip pip uninstall -y aws-sam-cli pyyaml # Workaround for fixing an issue with incompatible package versions - pip install -i "${{ secrets.INDEX_URL }}" -r requirements/full_requirements.txt + pip install --extra-index-url "${{ secrets.INDEX_URL }}" -r requirements/full_requirements.txt - name: Build run: | diff --git a/Dockerfile b/Dockerfile index a3add7b80..014d2fe93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,11 +39,11 @@ ENV PATH "${HOME}/.local/bin:${PATH}" # Install requirements separately for improved docker caching COPY --from=builder /code/prereq.txt . RUN --mount=type=secret,id=pip_index_url \ - pip install -i "$(cat /run/secrets/pip_index_url)" --no-deps -r prereq.txt --no-cache-dir + pip install --extra-index-url "$(cat /run/secrets/pip_index_url)" --no-deps -r prereq.txt --no-cache-dir COPY requirements/full_requirements.txt . RUN --mount=type=secret,id=pip_index_url \ - pip install -i "$(cat /run/secrets/pip_index_url)" -r full_requirements.txt --no-cache-dir + pip install --extra-index-url "$(cat /run/secrets/pip_index_url)" -r full_requirements.txt --no-cache-dir # Install gordo, packaged from earlier 'python setup.py sdist' COPY --from=builder /code/dist/gordo-packed.tar.gz .