-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from silinternational/release/5.3.0
Release 5.3.0 -- AppConfig
- Loading branch information
Showing
7 changed files
with
53 additions
and
11 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
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
FROM silintl/php8:8.1 | ||
LABEL maintainer="[email protected]" | ||
|
||
ARG GITHUB_REF_NAME | ||
ENV GITHUB_REF_NAME=$GITHUB_REF_NAME | ||
|
||
ENV REFRESHED_AT 2023-11-09 | ||
|
||
RUN mkdir -p /data | ||
|
@@ -19,4 +22,7 @@ COPY application/ /data/ | |
RUN chown -R www-data:www-data \ | ||
console/runtime/ | ||
|
||
CMD ["/data/yii", "batch/full"] | ||
ADD https://github.com/silinternational/config-shim/releases/latest/download/config-shim.gz config-shim.gz | ||
RUN gzip -d config-shim.gz && chmod 755 config-shim && mv config-shim /usr/local/bin | ||
|
||
CMD ["/data/run.sh"] |
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,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ -z "${APP_ID}" ]]; then | ||
/data/yii batch/full | ||
else | ||
config-shim --app $APP_ID --config $CONFIG_ID --env $ENV_ID /data/yii batch/full | ||
fi |
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