terraform config to create woodpecker ci cache storage on oci
Go to file
2024-05-28 15:02:15 +06:00
.envrc.sample init (resources creation ok) 2024-05-28 15:02:15 +06:00
.gitignore init (resources creation ok) 2024-05-28 15:02:15 +06:00
.terraform-docs.yml init (resources creation ok) 2024-05-28 15:02:15 +06:00
.terraform-version init (resources creation ok) 2024-05-28 15:02:15 +06:00
.terraform.lock.hcl init (resources creation ok) 2024-05-28 15:02:15 +06:00
oci.iam.tf init (resources creation ok) 2024-05-28 15:02:15 +06:00
oci.objectstorage.tf init (resources creation ok) 2024-05-28 15:02:15 +06:00
README.md init (resources creation ok) 2024-05-28 15:02:15 +06:00
terraform.backend.tfvars.sample init (resources creation ok) 2024-05-28 15:02:15 +06:00
terraform.data.tf init (resources creation ok) 2024-05-28 15:02:15 +06:00
terraform.locals.tf init (resources creation ok) 2024-05-28 15:02:15 +06:00
terraform.outputs.tf init (resources creation ok) 2024-05-28 15:02:15 +06:00
terraform.tf init (resources creation ok) 2024-05-28 15:02:15 +06:00
terraform.tfvars.sample init (resources creation ok) 2024-05-28 15:02:15 +06:00
terraform.variables.tf init (resources creation ok) 2024-05-28 15:02:15 +06:00

oci woodpecker cache

sets up a cache bucket on oci for use with woodpecker ci.

depends on terraform-oci-free.

Usage

terraform init -backend-config=terraform.backend.tfvars
terraform apply -var-file=terraform.tfvars

Collect the output values and create woodpecker ci user-level variables, eg:

CACHE_S3_ENDPOINT: <s3_endpoint>
CACHE_S3_BUCKET: <s3_bucket_name>
CACHE_S3_ACCESS_KEY_ID: <s3_access_key_id>
CACHE_S3_SECRET_ACCESS_KEY: <s3_secret_access_key>
CACHE_USE_PATH_STYLE: true

these variables can then be used with the drone-cache plugin in a woodpecker ci pipeline.

Terraform Docs