c7
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 25s

This commit is contained in:
2025-05-22 22:43:02 +08:00
parent c11013f03d
commit faa6a35475
3 changed files with 17 additions and 6 deletions

View File

@ -16,10 +16,5 @@ jobs:
- name: List files in the repository
run: |
docker build -t file -f docker/docker-file/Dockerfile .
echo "The workflow is now ready to test your code on the runner.000"
ls /Workspace/docker
echo "The workflow is now ready to test your code on the runner.111"
cd /Workspace/docker/docker-file/
echo "The workflow is now ready to test your code on the runner.222"
docker compose up -d
docker compose -f docker/docker-file/docker-compose-prod.yaml up -d
- run: echo "🍏 This job's status is ${{ job.status }}."

View File

@ -26,5 +26,6 @@ ENV TZ=Asia/Shanghai
WORKDIR /app
COPY --from=builder /app/file /app/file
COPY docker/docker-file/etc/config.yaml /app/etc/config.yaml
CMD ["./file", "-f", "etc/config.yaml"]

View File

@ -0,0 +1,15 @@
services:
file:
image: file
container_name: file
restart: always
networks:
- godemo_network
# 端口映射,生产环境非必须,开发环境用于方便调试
ports:
- "60200:60200"
networks:
godemo_network:
name: godemo_network
external: true