From 3a9eaef3ef4ec31b99bda836b8b667475e6ee532 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 6 Dec 2022 23:13:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9BUse=20different=20ports=20in/out=20?= =?UTF-8?q?of=20GHA=20containers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/self-smoke-test-action.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/self-smoke-test-action.yml b/.github/workflows/self-smoke-test-action.yml index c61f08c..4b40bb1 100644 --- a/.github/workflows/self-smoke-test-action.yml +++ b/.github/workflows/self-smoke-test-action.yml @@ -9,6 +9,7 @@ on: # yamllint disable-line rule:truthy env: devpi-password: abcd1234 devpi-username: root + devpi-port: 3141 FORCE_COLOR: 1 # Request colored output from CLI tools supporting it MYPY_FORCE_COLOR: 1 # MyPy's color enforcement @@ -35,7 +36,7 @@ jobs: env: DEVPI_PASSWORD: ${{ env.devpi-password }} ports: - - 3141 + - ${{ env.devpi-port }} timeout-minutes: 2 @@ -77,7 +78,7 @@ jobs: TWINE_PASSWORD: ${{ env.devpi-password }} TWINE_REPOSITORY_URL: >- http://localhost:${{ - job.services.devpi.ports['3141'] + job.services.devpi.ports[env.devpi-port] }}/${{ env.devpi-username }}/public/ @@ -87,10 +88,6 @@ jobs: user: ${{ env.devpi-username }} password: ${{ env.devpi-password }} repository_url: >- - http://devpi:${{ - job.services.devpi.ports['3141'] - }}/${{ - env.devpi-username - }}/public/ + http://devpi:${{ env.devpi-port }}/${{ env.devpi-username }}/public/ ...