forked from Anduin2017/HowToCook
-
Notifications
You must be signed in to change notification settings - Fork 0
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
d77713f
commit 39bb6f0
Showing
3 changed files
with
28 additions
and
0 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,8 @@ | ||
stages: | ||
- deploy | ||
|
||
deploy_docker: | ||
stage: deploy | ||
script: | ||
- docker build . -t hub.aiursoft.cn/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:latest | ||
- docker push hub.aiursoft.cn/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:latest |
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,19 @@ | ||
# ============================ | ||
# Prepare Node Environment | ||
FROM hub.aiursoft.cn/node:21-alpine as node-env | ||
WORKDIR /app | ||
COPY . . | ||
RUN node ./.github/readme-generate.js | ||
|
||
# ============================ | ||
# Prepare Build Environment | ||
FROM hub.aiursoft.cn/python:3.11 as python-env | ||
WORKDIR /app | ||
COPY --from=node-env /app . | ||
RUN pip install -r requirements.txt | ||
RUN mkdocs build --strict | ||
|
||
# ============================ | ||
# Prepare Runtime Environment | ||
FROM hub.aiursoft.cn/aiursoft/static | ||
COPY --from=python-env /app/site /data |