Files
Bapung 93223af7cc
Some checks failed
Build Heavy Service / build-and-package (push) Failing after 10m27s
add dockerhost
2026-01-02 09:52:49 +07:00

42 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
env:
DOCKER_HOST: tcp://localhost:2376
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' }}