Skip to content

kashw2/bitbucket-runner-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitbucket Runner Nix

A NixOS Package and Module that exposes the Bitbucket Runner as a Systemd Service via Nix.

Nix


Usage

As a Systemd Service

  1. Add the following to your flake.nix inputs:
bitbucket-runner-nix.url = "github:kashw2/bitbucket-runner-nix";
  1. Add the following to your flake.nix's nixosConfiguration configuration module:
bitbucket-runner-nix.nixosModules.bitbucket-runner;
  1. Add the following to your configuration.nix:
services.bitbucket-runner = {
    enable = true;
    flags = {
        accountUuid = "YOUR UUID";
        repositoryUuid = "YOUR REPOSITORY UUID";
        runnerUuid = "YOUR RUNNER UUID";
        OAuthClientId = "YOUR OAUTH CLIENT ID";
        OAuthClientSecret = "YOUR OAUTH CLIENT SECRET";
    };
};

Invoked via shell

nix shell github:kashw2/bitbucket-runner-nix#bitbucket-runner \ 
    -c sh \
    -c "bitbucket-runner-linux-shell \ 
    --accountUuid A \
    --runnerUuid B \
    --OAuthClientId C \
    --OAuthClientSecret D \
    --workingDirectory E \
    --runtime linux-shell"

About

A flake for deploying Bitbucket Runners on NixOS

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages