Skip to content

codefresh-contrib/quick-start

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codefresh Support - Quick Start Guide

This quick start guide is designed for new Codefresh accounts or accounts with no GitOps Runtimes installed. This guide utilizes GitHub Codespaces, which is free for ~30 hours a month based on the settings needed, to make this guide available for users with Chromebooks, low-powered devices, tablets, and any other devices with a modern browser and internet connection.

Prereqs

Local

If you want to use your local device, below are the requirements.

Getting Started

  1. Select "Use this template" > "Create a new repository".
  2. Once the repository is created, navigate to the settings tab.
  3. Click "Secrets and variables" > Codespaces on the left side.
  4. From there, we are going to add two variables.
  5. Once added, navigate back to the "Code" tab.
  6. Select the green "Code" button > "Codespaces" tab > "Create codespace on main."
  7. Once the Codespace is up and running, open the terminal.
  8. Navigate to the "codefresh" directory: cd codefresh.
  9. Initialize the project by running tofu init.
  10. Now we are going to apply the configuration by running tofu apply.
  11. Type in "yes" to approve the creation of resources.
  12. Once completed, everything should be up and running. For more details, refer to Resources Being Created.

Clean Up

To clean up the created resources, run the following command in the ./codefresh directory. When asked to confirm, type "yes."

tofu apply --destroy

Resources Being Created

The following items are resources created by the OpenTofu/Terraform code based on the file names.

./codefresh/classic.tf

./codefresh/github.tf

  • A repository name "codefresh-isc"
  • A repository name "codefresh-apps"
  • A Git Source
  • A sample Argo CD application

./codefresh/gitops.tf

./codefresh/minikube.tf

  • a minikube kubernetes cluster

Things to Note

The OpenTofu/Terraform codes use the local backend for their state. If the Codespace is ever destroyed, you will lose the state of the resources. You will then need to manually delete the resources it has created to use this code again. You can modify the back end in the ./codefresh/main.tf file.

About

Quick Start Guide with Demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages