Skip to content

Commit

Permalink
💚 fix env support
Browse files Browse the repository at this point in the history
  • Loading branch information
Félix Voituret committed Feb 12, 2021
1 parent dc6f9fe commit 0c710b1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ jobs:
# Note: base image building and env setup.
- name: Setup Python distribution
run: |
echo "::set-env name=base::python:${{ matrix.distribution }}"
echo "::set-env name=tag::${{ matrix.distribution }}"
echo "::set-env name=file::spleeter"
echo "base=python:${{ matrix.distribution }}" >> $GITHUB_ENV
echo "tag=${{ matrix.distribution }}" >> $GITHUB_ENV
echo "file=spleeter" >> $GITHUB_ENV
- if: ${{ matrix.distribution == 'conda' }}
name: Build Conda base image
run: |
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' }}
name: Build CUDA base image
run: |
docker build \
--build-arg BASE=python:${{ matrix.distribution }} \
-t cuda:${{ matrix.distribution }} \
-f docker/cuda-10-1.dockerfile .
echo "::set-env name=base::cuda:${{ matrix.distribution }}"
echo "::set-env name=tag::${{ matrix.distribution }}-gpu"
echo "base=${{ matrix.distribution }}" >> $GITHUB_ENV
echo "tag=${{ matrix.distribution }}-gpu" >> $GITHUB_ENV
# ----------------------------------------------------------------------
# Note: image building.
- name: Build deezer/spleeter:${{ env.tag }} image
Expand All @@ -47,7 +47,7 @@ jobs:
--build-arg SPLEETER_VERSION=${{ github.event.inputs.version }} \
-t deezer/spleeter:${{ env.tag }} \
-f docker/${{ env.file }}.dockerfile .
echo "::set-env name=modelargs::"
echo "modelargs=" >> $GITHUB_ENV
- if: ${{ matrix.model != 'modelless' }}
name: Build deezer/spleeter:${{ env.tag }}-${{ matrix.model }} image
run: |
Expand All @@ -56,8 +56,8 @@ jobs:
--build-arg MODEL=${{ matrix.model }} \
-t deezer/spleeter:${{ env.tag }}-${{ matrix.model }} \
-f docker/spleeter-model.dockerfile .
echo "::set-env name=tag::${{ env.tag }}-${{ matrix.model }}"
echo "::set-env name=modelarg::-p spleeter:${{ matrix.model }}"
echo "tag=${{ env.tag }}-${{ matrix.model }}" >> $GITHUB_ENV
echo "modelarg=-p spleeter:${{ matrix.model }}" >> $GITHUB_ENV
# ----------------------------------------------------------------------
# Note: image testing.
- name: Test deezer/spleeter:${{ env.tag }} image
Expand Down

0 comments on commit 0c710b1

Please sign in to comment.