Skip to content

Commit 41a2ecd

Browse files
author
Greg Bowler
committed
Add repo name to package name
1 parent cc56395 commit 41a2ecd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

php-build.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,15 @@ done
7474
GITHUB_REPOSITORY="${GITHUB_REPOSITORY,,}"
7575
dockerfile_unique="${dockerfile_unique// /_}"
7676
dockerfile_unique="${dockerfile_unique,,}"
77+
repo_without_org=$(echo "$GITHUB_REPOSITORY" | sed "s/[^\/]*\///")
7778

7879
# This tag will be used to identify the built dockerfile. Once it is built,
7980
# it should not need to be built again, so after the first Github Actions run
8081
# the build should be very quick.
8182
# Note: The GITHUB_REPOSITORY is the repo where the action is running, nothing
8283
# to do with the php-actions organisation. This means that the image is pushed
8384
# onto a user's Github profile (currently not shared between other users).
84-
docker_tag="docker.pkg.github.com/${GITHUB_REPOSITORY}/php-actions_${base_repo}:${dockerfile_unique}"
85+
docker_tag="docker.pkg.github.com/${GITHUB_REPOSITORY}/php-actions_${base_repo}_${repo_without_org}:${dockerfile_unique}"
8586
echo "$docker_tag" > ./docker_tag
8687

8788
# Attempt to pull the existing Docker image, if it exists. If the image has

0 commit comments

Comments
 (0)