-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
6 changed files
with
112 additions
and
4 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM mileschou/phalcon:7.2 | ||
|
||
LABEL "repository"="https://github.com/MilesChou/phalcon-action" | ||
LABEL "homepage"="https://github.com/MilesChou/phalcon-action" | ||
LABEL "maintainer"="MilesChou <[email protected]>" | ||
|
||
LABEL "com.github.actions.name"="Phalcon Action" | ||
LABEL "com.github.actions.description"="An action for running project with Phalcon framework environment" | ||
LABEL "com.github.actions.icon"="code" | ||
LABEL "com.github.actions.color"="green" | ||
|
||
# Install the devtools | ||
RUN docker-phalcon-install-devtools | ||
|
||
COPY phalcon-dev-entrypoint /usr/local/bin/phalcon-dev-entrypoint | ||
|
||
ENTRYPOINT ["/usr/local/bin/phalcon-dev-entrypoint"] |
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,33 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
isCommand() { | ||
for cmd in \ | ||
"info" "i"\ | ||
"commands" "list" "enumerate"\ | ||
"controller" "create-controller" \ | ||
"module" "create-module" \ | ||
"model" "create-model" \ | ||
"all-models" "create-all-models" \ | ||
"project" "create-project" \ | ||
"scaffold" "create-scaffold" \ | ||
"migration" "create-migration" \ | ||
"webtools" "create-webtools" \ | ||
"serve" "server" \ | ||
"console" "shell" "psysh" | ||
do | ||
if [ -z "${cmd#"$1"}" ]; then | ||
return 0 | ||
fi | ||
done | ||
|
||
return 1 | ||
} | ||
|
||
# check if the first argument passed in matches a known command | ||
if isCommand "$1"; then | ||
exec phalcon "$@" | ||
fi | ||
|
||
exec "$@" |
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,17 @@ | ||
FROM mileschou/phalcon:7.3 | ||
|
||
LABEL "repository"="https://github.com/MilesChou/phalcon-action" | ||
LABEL "homepage"="https://github.com/MilesChou/phalcon-action" | ||
LABEL "maintainer"="MilesChou <[email protected]>" | ||
|
||
LABEL "com.github.actions.name"="Phalcon Action" | ||
LABEL "com.github.actions.description"="An action for running project with Phalcon framework environment" | ||
LABEL "com.github.actions.icon"="code" | ||
LABEL "com.github.actions.color"="green" | ||
|
||
# Install the devtools | ||
RUN docker-phalcon-install-devtools | ||
|
||
COPY phalcon-dev-entrypoint /usr/local/bin/phalcon-dev-entrypoint | ||
|
||
ENTRYPOINT ["/usr/local/bin/phalcon-dev-entrypoint"] |
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,33 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
isCommand() { | ||
for cmd in \ | ||
"info" "i"\ | ||
"commands" "list" "enumerate"\ | ||
"controller" "create-controller" \ | ||
"module" "create-module" \ | ||
"model" "create-model" \ | ||
"all-models" "create-all-models" \ | ||
"project" "create-project" \ | ||
"scaffold" "create-scaffold" \ | ||
"migration" "create-migration" \ | ||
"webtools" "create-webtools" \ | ||
"serve" "server" \ | ||
"console" "shell" "psysh" | ||
do | ||
if [ -z "${cmd#"$1"}" ]; then | ||
return 0 | ||
fi | ||
done | ||
|
||
return 1 | ||
} | ||
|
||
# check if the first argument passed in matches a known command | ||
if isCommand "$1"; then | ||
exec phalcon "$@" | ||
fi | ||
|
||
exec "$@" |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ LABEL "maintainer"="MilesChou <[email protected]>" | |
LABEL "com.github.actions.name"="Phalcon Action" | ||
LABEL "com.github.actions.description"="An action for running project with Phalcon framework environment" | ||
LABEL "com.github.actions.icon"="code" | ||
LABEL "com.github.actions.color"="black" | ||
LABEL "com.github.actions.color"="green" | ||
|
||
# Install the devtools | ||
RUN docker-phalcon-install-devtools | ||
|