ci: fix images not being pushed with correct tags
* ci: debug Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * ci: fix branch and sha Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -4,10 +4,13 @@ from time import time | ||||
|  | ||||
| env_pr_branch = "GITHUB_HEAD_REF" | ||||
| default_branch = "GITHUB_REF" | ||||
| sha = "GITHUB_SHA" | ||||
|  | ||||
| branch_name = os.environ[default_branch] | ||||
| if env_pr_branch in os.environ: | ||||
|     branch_name = os.environ[env_pr_branch].replace("/", "-") | ||||
| if os.environ.get(env_pr_branch, "") != "": | ||||
|     branch_name = os.environ[env_pr_branch] | ||||
| branch_name = branch_name.replace("refs/heads/", "").replace("/", "-") | ||||
|  | ||||
| print("##[set-output name=branchName]%s" % branch_name) | ||||
| print("##[set-output name=timestamp]%s" % int(time())) | ||||
| print("##[set-output name=sha]%s" % os.environ[sha]) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens L
					Jens L