We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c4c690 commit ac573e8Copy full SHA for ac573e8
.github/actions/docker-setup/action.yml
@@ -40,7 +40,8 @@ runs:
40
run: |
41
GIT_URL="${{ inputs.git_url }}"
42
if [[ -z "$GIT_URL" ]]; then
43
- GIT_URL="ghcr.io"
+ GIT_URL=$(echo "${GITHUB_SERVER_URL}" | awk -F/ '{print $3}' | sed 's/\/*$//')
44
+ GIT_URL=$(echo "$GIT_URL" | sed 's/github\.com/ghcr\.io/g') # GIT_URL switch to ghcr.io registry for GitHub
45
fi
46
echo "GIT_URL=$GIT_URL" >> "$GITHUB_ENV"
47
0 commit comments