mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 02:55:38 +00:00
try mixing up secrets
This commit is contained in:
parent
16e228b7b0
commit
7e0a0bbbd2
9
.github/workflows/arrow.yml
vendored
9
.github/workflows/arrow.yml
vendored
@ -5,10 +5,10 @@ env:
|
||||
DEPLOY_IDENTITY_BASE64: ${{ secrets.DEPLOY_IDENTITY_BASE64 }}
|
||||
ARROW_IDENTITY_BASE64: ${{ secrets.ARROW_IDENTITY_BASE64 }}
|
||||
CLOUDFLARE_R2_ENDPOINT: "${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com"
|
||||
TF_VAR_cloudflare_account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
TF_VAR_cloudflare_r2_access_key: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY }}
|
||||
TF_VAR_cloudflare_r2_secret_key: ${{ secrets.CLOUDFLARE_R2_SECRET_KEY }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_KEY }}
|
||||
TF_VAR_vultr_api_key: ${{ secrets.VULTR_API_KEY }}
|
||||
TF_VAR_cloudflare_r2_endpoint: "${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@ -57,9 +57,6 @@ jobs:
|
||||
result/iso/nixos.iso \
|
||||
s3://noahmasur-arrow-images/arrow.iso \
|
||||
--endpoint-url "https://${{ env.CLOUDFLARE_R2_ENDPOINT }}"
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_KEY }}
|
||||
|
||||
# # Copy the image to S3
|
||||
# - name: Upload Image to Cache
|
||||
|
@ -17,20 +17,9 @@ terraform {
|
||||
# image_file = one(fileset(path.root, "result/iso/nixos.iso"))
|
||||
# }
|
||||
|
||||
variable "cloudflare_account_id" {
|
||||
variable "cloudflare_r2_endpoint" {
|
||||
type = string
|
||||
description = "ID of the Cloudflare account"
|
||||
}
|
||||
|
||||
variable "cloudflare_r2_access_key" {
|
||||
type = string
|
||||
description = "Non-sensitive access key ID for Cloudflare R2"
|
||||
}
|
||||
|
||||
variable "cloudflare_r2_secret_key" {
|
||||
type = string
|
||||
description = "Sensitive access key secret for Cloudflare R2"
|
||||
sensitive = true
|
||||
description = "Domain for the Cloudflare R2 endpoint"
|
||||
}
|
||||
|
||||
variable "vultr_api_key" {
|
||||
@ -42,15 +31,12 @@ variable "vultr_api_key" {
|
||||
provider "aws" {
|
||||
region = "us-east-1"
|
||||
|
||||
access_key = var.cloudflare_r2_access_key
|
||||
secret_key = var.cloudflare_r2_secret_key
|
||||
|
||||
skip_credentials_validation = true
|
||||
skip_region_validation = true
|
||||
skip_requesting_account_id = true
|
||||
|
||||
endpoints {
|
||||
s3 = "https://${var.cloudflare_account_id}.r2.cloudflarestorage.com"
|
||||
s3 = "https://${var.cloudflare_r2_endpoint}"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user