dycw-actions 0.8.4__py3-none-any.whl → 0.8.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- actions/__init__.py +1 -1
- actions/register_gitea_runner/lib.py +6 -8
- {dycw_actions-0.8.4.dist-info → dycw_actions-0.8.5.dist-info}/METADATA +1 -1
- {dycw_actions-0.8.4.dist-info → dycw_actions-0.8.5.dist-info}/RECORD +6 -6
- {dycw_actions-0.8.4.dist-info → dycw_actions-0.8.5.dist-info}/WHEEL +0 -0
- {dycw_actions-0.8.4.dist-info → dycw_actions-0.8.5.dist-info}/entry_points.txt +0 -0
actions/__init__.py
CHANGED
|
@@ -7,7 +7,7 @@ from typing import TYPE_CHECKING
|
|
|
7
7
|
|
|
8
8
|
from requests import get
|
|
9
9
|
from utilities.atomicwrites import writer
|
|
10
|
-
from utilities.subprocess import chmod,
|
|
10
|
+
from utilities.subprocess import chmod, ssh
|
|
11
11
|
from utilities.text import strip_and_dedent
|
|
12
12
|
|
|
13
13
|
from actions import __version__
|
|
@@ -19,6 +19,7 @@ from actions.register_gitea_runner.constants import (
|
|
|
19
19
|
URL_WAIT_FOR_IT,
|
|
20
20
|
)
|
|
21
21
|
from actions.register_gitea_runner.settings import SETTINGS
|
|
22
|
+
from actions.utilities import logged_run
|
|
22
23
|
|
|
23
24
|
if TYPE_CHECKING:
|
|
24
25
|
from utilities.types import PathLike
|
|
@@ -71,6 +72,7 @@ def register_gitea_runner(
|
|
|
71
72
|
*_docker_exec_generate(user=gitea_container_user, name=gitea_container_name),
|
|
72
73
|
return_=True,
|
|
73
74
|
)
|
|
75
|
+
LOGGER.info("Got token %r", token)
|
|
74
76
|
_start_runner(
|
|
75
77
|
token,
|
|
76
78
|
runner_certificate=runner_certificate,
|
|
@@ -95,10 +97,9 @@ def register_against_local(
|
|
|
95
97
|
) -> None:
|
|
96
98
|
"""Register against a local instance of Gitea."""
|
|
97
99
|
LOGGER.info("Registering against %s:%d...", gitea_host, gitea_port)
|
|
98
|
-
token =
|
|
100
|
+
token = logged_run(
|
|
99
101
|
*_docker_exec_generate(user=gitea_container_user, name=gitea_container_name),
|
|
100
102
|
return_=True,
|
|
101
|
-
logger=LOGGER,
|
|
102
103
|
)
|
|
103
104
|
_start_runner(
|
|
104
105
|
token,
|
|
@@ -236,10 +237,8 @@ def _start_runner(
|
|
|
236
237
|
_write_config(token, capacity=runner_capacity, certificate=runner_certificate)
|
|
237
238
|
_write_entrypoint(host=gitea_host, port=gitea_port)
|
|
238
239
|
_write_wait_for_it()
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
)
|
|
242
|
-
run(
|
|
240
|
+
logged_run(*_docker_stop_runner_args(name=runner_container_name), print=True)
|
|
241
|
+
logged_run(
|
|
243
242
|
*_docker_run_act_runner_args(
|
|
244
243
|
token,
|
|
245
244
|
host=gitea_host,
|
|
@@ -249,7 +248,6 @@ def _start_runner(
|
|
|
249
248
|
container_name=runner_container_name,
|
|
250
249
|
),
|
|
251
250
|
print=True,
|
|
252
|
-
logger=LOGGER,
|
|
253
251
|
)
|
|
254
252
|
|
|
255
253
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
actions/__init__.py,sha256=
|
|
1
|
+
actions/__init__.py,sha256=OlKKXmurpRa7hpnMwsqC-3AVjanBWghNU3iQC6jDLXg,58
|
|
2
2
|
actions/clean_dir/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
|
|
3
3
|
actions/clean_dir/cli.py,sha256=OrFA2nEN2LyGF22mhTNEBr7KSuKgX54sGy9RyE73qUc,569
|
|
4
4
|
actions/clean_dir/constants.py,sha256=aDNaYtemEv3lcMXo96Oh4pw_HASMby1GZC1D_gbjPAc,167
|
|
@@ -55,7 +55,7 @@ actions/register_gitea_runner/cli.py,sha256=70RUyzKCZHxyDRMFwCAwDC0LDsUZxBi2T6ct
|
|
|
55
55
|
actions/register_gitea_runner/configs/config.yml,sha256=0kpaqAjMRDqdSxkSK8ydOk2IsrlkB4cUkYmbkHAurrg,5683
|
|
56
56
|
actions/register_gitea_runner/configs/entrypoint.sh,sha256=IN40hAu8ufyyFWPIgsX_hWp0ZZZ0c36czCaqmECjBrw,476
|
|
57
57
|
actions/register_gitea_runner/constants.py,sha256=wX1f5qvhIXngBVWbIQRoIaXIdPaUByvG8HS8P0WcCGM,694
|
|
58
|
-
actions/register_gitea_runner/lib.py,sha256=
|
|
58
|
+
actions/register_gitea_runner/lib.py,sha256=ouc5XGfFRnAQNzU238U0_oVTdmdGEIrOW8lggqXsogM,8853
|
|
59
59
|
actions/register_gitea_runner/settings.py,sha256=0UQm8M3qDiBE3jiE333M4FdLjikNAzpc9gk_VlzI0s8,1149
|
|
60
60
|
actions/run_hooks/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
|
|
61
61
|
actions/run_hooks/cli.py,sha256=xKBw6iIlHpUlHl6-QWQLSL6KKVjnsihBeJ7h58Rl8P4,616
|
|
@@ -76,7 +76,7 @@ actions/tag_commit/lib.py,sha256=rq1SqAkNp98cPsNOsFY4F1D6nNi7N3wqVbFPno8lsuI,184
|
|
|
76
76
|
actions/tag_commit/settings.py,sha256=TOeKG_GODP--2lBSyGzH_M32jDIfh4vk_Ts06R3_ak4,629
|
|
77
77
|
actions/types.py,sha256=1P3oAnYxyKgAfv8986jZ6whwdHV0qLHoX0oR8brviQk,586
|
|
78
78
|
actions/utilities.py,sha256=VpFLBiAezgSRlm9dvnyPyQohreaV2Lv7cJ9HAxqZ4WI,4086
|
|
79
|
-
dycw_actions-0.8.
|
|
80
|
-
dycw_actions-0.8.
|
|
81
|
-
dycw_actions-0.8.
|
|
82
|
-
dycw_actions-0.8.
|
|
79
|
+
dycw_actions-0.8.5.dist-info/WHEEL,sha256=KSLUh82mDPEPk0Bx0ScXlWL64bc8KmzIPNcpQZFV-6E,79
|
|
80
|
+
dycw_actions-0.8.5.dist-info/entry_points.txt,sha256=2Uu7wAZOm0mmcsGBEsGB370HAWgVWECRFJ9rKgfC3-I,46
|
|
81
|
+
dycw_actions-0.8.5.dist-info/METADATA,sha256=_wo_GxdFbHJzLCgdaBRLKBe-TwFpIuQZ9e0MyWHptUY,654
|
|
82
|
+
dycw_actions-0.8.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|