add heavy build
This commit is contained in:
39
.gitea/workflows/build.yaml
Normal file
39
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Build Heavy Service
|
||||
run-name: Build Heavy Service by ${{ gitea.actor }}
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
file_count:
|
||||
description: 'Number of files to generate (controls build time)'
|
||||
required: false
|
||||
default: '10000'
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build-and-package:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Build Docker Image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
# We don't push to a registry here since no credentials were provided,
|
||||
# but the image is built and packaged locally in the runner.
|
||||
push: false
|
||||
tags: dummy-service:latest
|
||||
# We set a high file count to ensure the build takes a significant amount of time
|
||||
# to simulate a heavy workload in the CI system.
|
||||
build-args: |
|
||||
FILE_COUNT=${{ inputs.file_count || '10000' }}
|
||||
Reference in New Issue
Block a user