Skip to content

Commit 4fc5f42

Browse files
InCogNiTo124Borda
andcommitted
Github Actions deprecation (#5183)
* Fix deprecation call * fix Co-authored-by: Jirka Borovec <[email protected]>
1 parent 7344d42 commit 4fc5f42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release-docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Get release version
2727
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'release'
2828
id: get_version
29-
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF##*/})
29+
run: echo "::set-output name=RELEASE_VERSION::$(echo ${GITHUB_REF##*/})"
3030

3131
- name: Publish Releases to Docker
3232
# only on releases
@@ -37,6 +37,6 @@ jobs:
3737
username: ${{ secrets.DOCKER_USERNAME }}
3838
password: ${{ secrets.DOCKER_PASSWORD }}
3939
dockerfile: dockers/release/Dockerfile
40-
build_args: PYTHON_VERSION=${{ matrix.python_version }},PYTORCH_VERSION=${{ matrix.pytorch_version }},LIGHTNING_VERSION=${{ env.RELEASE_VERSION }}
41-
tags: "${{ env.RELEASE_VERSION }}-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }},latest-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}"
40+
build_args: PYTHON_VERSION=${{ matrix.python_version }},PYTORCH_VERSION=${{ matrix.pytorch_version }},LIGHTNING_VERSION=${{ steps.get_version.outputs.RELEASE_VERSION }}
41+
tags: "${{ steps.get_version.outputs.RELEASE_VERSION }}-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }},latest-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}"
4242
timeout-minutes: 55

0 commit comments

Comments
 (0)