-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b89ccb
commit 99538c9
Showing
5 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
/* | ||
---------------------------------- | ||
------ Created: 111224 ------ | ||
------ Austin Best ------ | ||
---------------------------------- | ||
*/ | ||
|
||
function gitBranch() | ||
{ | ||
if (!defined('DOCKERFILE_BRANCH')) { | ||
return 'Source'; | ||
} | ||
|
||
return DOCKERFILE_BRANCH; | ||
} | ||
|
||
function gitHash() | ||
{ | ||
if (!defined('DOCKERFILE_COMMIT')) { | ||
return 'Unknown'; | ||
} | ||
|
||
return DOCKERFILE_COMMIT; | ||
} | ||
|
||
function gitMessage() | ||
{ | ||
if (!defined('DOCKERFILE_COMMIT_MSG')) { | ||
return 'Unknown'; | ||
} | ||
|
||
return DOCKERFILE_COMMIT_MSG; | ||
} | ||
|
||
function gitVersion() | ||
{ | ||
if (!defined('DOCKERFILE_COMMITS')) { | ||
return '<span class="text-small text-secondary" title="Branch: ' . gitBranch() . ' - Commit: ' . gitHash() . '">v0.0.0</span>'; | ||
} | ||
|
||
return '<span class="text-small text-secondary" title="Branch: ' . gitBranch() . ' - Commit: ' . gitHash() . '">v' . APP_X . '.' . APP_Y . '.' . DOCKERFILE_COMMITS . '</span>'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters