Skip to content

Commit 3a9eaef

Browse files
committed
🐛Use different ports in/out of GHA containers
1 parent a01fa74 commit 3a9eaef

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/self-smoke-test-action.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on: # yamllint disable-line rule:truthy
99
env:
1010
devpi-password: abcd1234
1111
devpi-username: root
12+
devpi-port: 3141
1213

1314
FORCE_COLOR: 1 # Request colored output from CLI tools supporting it
1415
MYPY_FORCE_COLOR: 1 # MyPy's color enforcement
@@ -35,7 +36,7 @@ jobs:
3536
env:
3637
DEVPI_PASSWORD: ${{ env.devpi-password }}
3738
ports:
38-
- 3141
39+
- ${{ env.devpi-port }}
3940

4041
timeout-minutes: 2
4142

@@ -77,7 +78,7 @@ jobs:
7778
TWINE_PASSWORD: ${{ env.devpi-password }}
7879
TWINE_REPOSITORY_URL: >-
7980
http://localhost:${{
80-
job.services.devpi.ports['3141']
81+
job.services.devpi.ports[env.devpi-port]
8182
}}/${{
8283
env.devpi-username
8384
}}/public/
@@ -87,10 +88,6 @@ jobs:
8788
user: ${{ env.devpi-username }}
8889
password: ${{ env.devpi-password }}
8990
repository_url: >-
90-
http://devpi:${{
91-
job.services.devpi.ports['3141']
92-
}}/${{
93-
env.devpi-username
94-
}}/public/
91+
http://devpi:${{ env.devpi-port }}/${{ env.devpi-username }}/public/
9592
9693
...

0 commit comments

Comments
 (0)