Files
Achievement_Inputing/.gitea/workflows/ci.yml
spdis 8d581ac638
Some checks failed
CI / docker-ci (push) Failing after 4s
不尝试对镜像进行测试[ci]
2025-11-26 18:09:13 +08:00

30 lines
778 B
YAML

name: CI
on:
push:
branches:
- Django
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
docker-ci:
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[ci]'))
runs-on: ubuntu-latest
timeout-minutes: 40
env:
DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }}
DJANGO_DEBUG: "False"
DJANGO_ALLOWED_HOSTS: "127.0.0.1,localhost"
IMAGE_NAME: achievement_inputing_ci
steps:
- name: Build application image
run: |
docker build -t "$IMAGE_NAME" -f Dockerfile .
- name: Output image info
run: |
docker image inspect "$IMAGE_NAME" --format '{{.Id}} {{.Size}}'