Loading compose.yaml 0 → 100644 +42 −0 Original line number Diff line number Diff line services: runner: build: dockerfile_inline: | FROM golang:1.24-alpine AS builder WORKDIR /build COPY go.mod go.sum . RUN go mod download COPY . . RUN go build -o fleeting-plugin-cloudscale main.go FROM gitlab/gitlab-runner:latest COPY --from=builder /build/fleeting-plugin-cloudscale /bin/fleeting-plugin-cloudscale configs: - source: runner_config target: /etc/gitlab-runner/config.toml develop: watch: - action: rebuild path: . configs: runner_config: name: "config.toml" content: | log_level = "debug" [[runners]] # Set as environment variable or replace this with your GitLab instance URL if needed. url = "$GITLAB_URL" # Set as environment variable or replace with token from new (project) runner registration. token = "$RUNNER_TOKEN" # For this example we will use instance runners. executor = "instance" [runners.autoscaler] plugin = "fleeting-plugin-cloudscale" # Same name as the built binary. [[runners.autoscaler.policy]] idle_count = 0 # We only want to create instances when needed. Loading
compose.yaml 0 → 100644 +42 −0 Original line number Diff line number Diff line services: runner: build: dockerfile_inline: | FROM golang:1.24-alpine AS builder WORKDIR /build COPY go.mod go.sum . RUN go mod download COPY . . RUN go build -o fleeting-plugin-cloudscale main.go FROM gitlab/gitlab-runner:latest COPY --from=builder /build/fleeting-plugin-cloudscale /bin/fleeting-plugin-cloudscale configs: - source: runner_config target: /etc/gitlab-runner/config.toml develop: watch: - action: rebuild path: . configs: runner_config: name: "config.toml" content: | log_level = "debug" [[runners]] # Set as environment variable or replace this with your GitLab instance URL if needed. url = "$GITLAB_URL" # Set as environment variable or replace with token from new (project) runner registration. token = "$RUNNER_TOKEN" # For this example we will use instance runners. executor = "instance" [runners.autoscaler] plugin = "fleeting-plugin-cloudscale" # Same name as the built binary. [[runners.autoscaler.policy]] idle_count = 0 # We only want to create instances when needed.