Skip to content

Commit

Permalink
Merge #93
Browse files Browse the repository at this point in the history
93: Ensure DIGITALOCEAN_ACCESS_TOKEN is present r=curquiza a=brunoocasali

For some weird reason the CI is not working anymore in the PR #91. This PR attempts to fix this

Co-authored-by: Bruno Casali <[email protected]>
  • Loading branch information
meili-bors[bot] and brunoocasali authored Jan 22, 2025
2 parents 8fd8fe0 + b81280e commit 8b89c84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions meilisearch.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ variable "meilisearch_version" {
default = "v1.12.0"
}

variable "digitalocean_access_token" {
type = string
default = env("DIGITALOCEAN_ACCESS_TOKEN")
}

locals {
timestamp = regex_replace(timestamp(), "[- TZ:]", "")
}
Expand Down Expand Up @@ -72,6 +77,7 @@ source "amazon-ebs" "debian" {
}

source "digitalocean" "debian" {
api_token = "${var.digitalocean_access_token}"
droplet_name = "${var.image_name}-${var.meilisearch_version}-${var.base-os-version}"
snapshot_name = "${var.image_name}-${var.meilisearch_version}-${var.base-os-version}"
image = "debian-11-x64"
Expand Down

0 comments on commit 8b89c84

Please sign in to comment.