提交 0c710b11 编写于 作者: F Félix Voituret

💚 fix env support

上级 dc6f9fe0
...@@ -21,14 +21,14 @@ jobs: ...@@ -21,14 +21,14 @@ jobs:
# Note: base image building and env setup. # Note: base image building and env setup.
- name: Setup Python distribution - name: Setup Python distribution
run: | run: |
echo "::set-env name=base::python:${{ matrix.distribution }}" echo "base=python:${{ matrix.distribution }}" >> $GITHUB_ENV
echo "::set-env name=tag::${{ matrix.distribution }}" echo "tag=${{ matrix.distribution }}" >> $GITHUB_ENV
echo "::set-env name=file::spleeter" echo "file=spleeter" >> $GITHUB_ENV
- if: ${{ matrix.distribution == 'conda' }} - if: ${{ matrix.distribution == 'conda' }}
name: Build Conda base image name: Build Conda base image
run: | run: |
docker build -t python:conda -f docker/conda.dockerfile . docker build -t python:conda -f docker/conda.dockerfile .
echo "::set-env name=file::spleeter-conda" echo "file=spleeter-conda" >> $GITHUB_ENV
- if: ${{ matrix.platform == 'gpu' }} - if: ${{ matrix.platform == 'gpu' }}
name: Build CUDA base image name: Build CUDA base image
run: | run: |
...@@ -36,8 +36,8 @@ jobs: ...@@ -36,8 +36,8 @@ jobs:
--build-arg BASE=python:${{ matrix.distribution }} \ --build-arg BASE=python:${{ matrix.distribution }} \
-t cuda:${{ matrix.distribution }} \ -t cuda:${{ matrix.distribution }} \
-f docker/cuda-10-1.dockerfile . -f docker/cuda-10-1.dockerfile .
echo "::set-env name=base::cuda:${{ matrix.distribution }}" echo "base=${{ matrix.distribution }}" >> $GITHUB_ENV
echo "::set-env name=tag::${{ matrix.distribution }}-gpu" echo "tag=${{ matrix.distribution }}-gpu" >> $GITHUB_ENV
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Note: image building. # Note: image building.
- name: Build deezer/spleeter:${{ env.tag }} image - name: Build deezer/spleeter:${{ env.tag }} image
...@@ -47,7 +47,7 @@ jobs: ...@@ -47,7 +47,7 @@ jobs:
--build-arg SPLEETER_VERSION=${{ github.event.inputs.version }} \ --build-arg SPLEETER_VERSION=${{ github.event.inputs.version }} \
-t deezer/spleeter:${{ env.tag }} \ -t deezer/spleeter:${{ env.tag }} \
-f docker/${{ env.file }}.dockerfile . -f docker/${{ env.file }}.dockerfile .
echo "::set-env name=modelargs::" echo "modelargs=" >> $GITHUB_ENV
- if: ${{ matrix.model != 'modelless' }} - if: ${{ matrix.model != 'modelless' }}
name: Build deezer/spleeter:${{ env.tag }}-${{ matrix.model }} image name: Build deezer/spleeter:${{ env.tag }}-${{ matrix.model }} image
run: | run: |
...@@ -56,8 +56,8 @@ jobs: ...@@ -56,8 +56,8 @@ jobs:
--build-arg MODEL=${{ matrix.model }} \ --build-arg MODEL=${{ matrix.model }} \
-t deezer/spleeter:${{ env.tag }}-${{ matrix.model }} \ -t deezer/spleeter:${{ env.tag }}-${{ matrix.model }} \
-f docker/spleeter-model.dockerfile . -f docker/spleeter-model.dockerfile .
echo "::set-env name=tag::${{ env.tag }}-${{ matrix.model }}" echo "tag=${{ env.tag }}-${{ matrix.model }}" >> $GITHUB_ENV
echo "::set-env name=modelarg::-p spleeter:${{ matrix.model }}" echo "modelarg=-p spleeter:${{ matrix.model }}" >> $GITHUB_ENV
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Note: image testing. # Note: image testing.
- name: Test deezer/spleeter:${{ env.tag }} image - name: Test deezer/spleeter:${{ env.tag }} image
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册