Compare commits
6 Commits
94a41fafc6
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| f654d4f55b | |||
| bb2a674bd1 | |||
| 914cefe780 | |||
| e9a93d8686 | |||
| 8a427f9a06 | |||
| 348a826919 |
31
.gitea/workflows/workflow.yaml
Normal file
31
.gitea/workflows/workflow.yaml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: Deploy Static Website
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
name: Deploy to Web Server
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
container:
|
||||||
|
image: catthehacker/ubuntu:act-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
with:
|
||||||
|
driver: docker
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: |
|
||||||
|
docker buildx build . -t git.mamahaha.work/sangge/hhl -f Dockerfile
|
||||||
|
|
||||||
|
- name: Start Docker
|
||||||
|
run: |
|
||||||
|
docker run -d -p 0.0.0.0:4010:80 git.mamahaha.work/sangge/hhl:latest
|
||||||
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# 使用官方的 Nginx 镜像作为基础镜像
|
||||||
|
FROM nginx:latest
|
||||||
|
|
||||||
|
# 定义工作目录
|
||||||
|
WORKDIR /usr/share/nginx/html
|
||||||
|
|
||||||
|
# 移除默认的 Nginx 静态资源
|
||||||
|
RUN rm -rf ./*
|
||||||
|
|
||||||
|
# 将静态网页内容复制到容器中
|
||||||
|
COPY . /usr/share/nginx/html
|
||||||
|
|
||||||
|
# 暴露端口 80
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
# 启动 Nginx 服务
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
@@ -136,27 +136,39 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#lamb img{
|
#lamb img{
|
||||||
left: -10px;
|
left: -1px;
|
||||||
|
top: 643px!important;
|
||||||
|
width: 268px!important;
|
||||||
|
height: 268px!important;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#yoghurt img{ /* 芝士 */
|
#yoghurt img{ /* 芝士 */
|
||||||
left: 170px;
|
left: 248px;
|
||||||
|
top: 679px!important;
|
||||||
|
width: 228px!important;
|
||||||
|
height: 228px!important;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#moussaka img{
|
#moussaka img{
|
||||||
left: 380px;
|
left: 461px;
|
||||||
|
top: 673px!important;
|
||||||
|
width: 258px!important;
|
||||||
|
height: 258px!important;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#salad img{
|
#salad img{
|
||||||
left: 590px;
|
left: 749px;
|
||||||
|
top: 675px!important;
|
||||||
|
width: 258px!important;
|
||||||
|
height: 258px!important;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#cheese img{
|
#cheese img{
|
||||||
left: 750px;
|
left: 1021px;
|
||||||
top: 719px!important;
|
top: 678px!important;
|
||||||
width: 181px!important;
|
width: 232px!important;
|
||||||
height: 183px!important;
|
height: 232px!important;
|
||||||
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -162,7 +162,7 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#pancakes img{
|
#pancakes img{
|
||||||
left: 954px;
|
left: 926px;
|
||||||
top: 709px!important;
|
top: 709px!important;
|
||||||
width: 213px!important;
|
width: 213px!important;
|
||||||
height: 233px!important;
|
height: 233px!important;
|
||||||
|
|||||||
Reference in New Issue
Block a user