Some checks failed
Build Heavy Service / build-and-package (push) Has been cancelled
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
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' }} |