Skip to content

Commit

Permalink
Merge pull request #4 from skyscrapers/expose_version
Browse files Browse the repository at this point in the history
chore: expose Bitbucket runner version
  • Loading branch information
simonrondelez authored Sep 30, 2024
2 parents 058583a + 163176f commit 2af6cc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion statefulset.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ resource "kubernetes_stateful_set" "bitbucket_runner" {
}

container {
image = "docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1"
image = "docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:${var.runner_version}"
name = "runner"

env {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ variable "bitbucket_runners" {
description = "Map of Bitbucket runner definitions"
}

variable "runner_version" {
type = number
description = "Version of the Bitbucket runner to deploy"
default = 1
}

variable "k8s_namespace" {
type = string
description = "Kubernetes namespace where to deploy the runners to"
Expand Down

0 comments on commit 2af6cc0

Please sign in to comment.