Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Google Cloud Build for automated builds of k3karthic/go-ipfs with ipfs-ds-s3 plugin

License

Notifications You must be signed in to change notification settings

k3karthic/terraform__ipfs-build-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform — Google Cloud Build for go-ipfs

Automated builds of the following go-ipfs fork below using a Google Cloud Build trigger,

The build pipeline consists of the following steps,

  1. Build the ipfs binary using the Dockerfile from the fork
  2. Store the binary in a Google Cloud Storage bucket

Code Mirrors

Requirements

Configuration

Update the Terraform input variables in ipfs.tfvars,

  • gcs_name — Name of the Google storage bucket which will store the built ipfs binary
  • gcs_locationGCS location of the bucket
  • gcs_storage_class — Storage class for the bucket

Authentication

Google provider documentation is at registry.terraform.io/providers/hashicorp/google/latest/docs.

Google Cloud Shell can deploy this script without configuration.

Deployment

Step 1: Use the following command to create a Terraform plan,

$ ./bin/plan.sh

To avoid fetching the latest state of resources, use the following command,

$ ./bin/plan.sh -refresh=false

Step 2: Review the plan using the following command,

$ ./bin/view.sh

Step 3: Apply the plan using the following command,

$ ./bin/apply.sh

Encryption

Encrypt sensitive files (Terraform input variables and state) before saving them. .gitignore must contain the unencrypted file paths.

Use the following command to decrypt the files after cloning the repository,

$ ./bin/decrypt.sh

Use the following command after running bin/apply.sh to encrypt the updated state files,

$ ./bin/encrypt.sh <gpg key id>

About

Google Cloud Build for automated builds of k3karthic/go-ipfs with ipfs-ds-s3 plugin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published