We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f1dc07 commit d28dbf0Copy full SHA for d28dbf0
create-docker-action.py
@@ -10,10 +10,12 @@
10
REPO_ID = os.environ['REPO_ID']
11
REPO_ID_GH_ACTION = '178055147'
12
13
+ACTION_SHELL_CHECKOUT_PATH = pathlib.Path(__file__).parent.resolve()
14
+
15
16
def set_image(ref: str, repo: str, repo_id: str) -> str:
17
if repo_id == REPO_ID_GH_ACTION:
- return '../../../Dockerfile'
18
+ return str(ACTION_SHELL_CHECKOUT_PATH / 'Dockerfile')
19
docker_ref = ref.replace('/', '-')
20
return f'docker://ghcr.io/{repo}:{docker_ref}'
21
0 commit comments