![]() ![]() Leave the dialog open, or paste the token into a text editor, in case your clipboard accidentally gets overwritten before the end of the next step. Once you close the token dialog, you can’t re-open it. Enter the name “Tutorial” and click “Create Token”.įermyon Cloud displays the token click the copy button to copy it to your clipboard. In the “Personal Access Tokens”, choose “Add a Token”. If you’re not logged in, choose the Login With GitHub button. Instead, you’ll use a Personal Access Token (PAT). Of course, that’s not possible in an unattended environment like GitHub Actions. When you deploy from the Spin command line, you log into Fermyon Cloud using your browser. ![]() You’ve now got a Spin application in GitHub, ready to add a deployment workflow. Push your new application to GitHub: $ cd github-actions-tutorial Make sure the name matches the repo you just created, otherwise the application won’t be generated into the repo working copy. Github-actions-tutorial already contains other files. $ spin new -t http-go github-actions-tutorial -accept-defaults ![]() Now let’s create a Spin HTTP application using a template. $ gh repo create github-actions-tutorial -public -clone # Create the github-actions-tutorial repo on GitHub and clone a working copy. We’ll use the GitHub CLI below for illustrative purposes. You can do this either on GitHub’s UI or via the GitHub CLI using the gh repo create command. The first step is to create a GitHub repository for your application. The tutorial assumes that your application manifest is a file named spin.toml in the root directory of your GitHub repository if that’s not the case, you may need to change some details of the workflow. Instead, open a command line on your application directory. If you’d like to work with one of your existing Spin applications, and you’ve pushed that application to GitHub, you can skip this step. A Fermyon Cloud account that is set up via your preferred GitHub user accountĬreate a Spin Application in a GitHub Repository.You can check the version using spin -version. To ensure the tutorial goes smoothly, please check you have the following: Upon completing this tutorial, you should have a GitHub repository that builds and deploys a Spin application to Fermyon Cloud every time you merge a pull request to main. In this tutorial, you’ll create an application and deploy it from GitHub to Fermyon Cloud using the fermyon/actions/spin/deploy action. fermyon/actions/spin/deploy - deploys a Spin application to Fermyon Cloud.fermyon/actions/spin/push - pushes a Spin application to a registry.fermyon/actions/spin/setup - installs the Spin CLI and necessary plugins.Workflows are composed of actions, of which there are thousands, published by companies and individual enthusiasts alike, that automate otherwise mundane, repetitive in-house development tasks.įermyon provides a set of actions for working with Spin. With GitHub Actions, developers can create workflows that build, test and even deploy (to production) pull requests that have been merged into their repositories. GitHub Actions is a Continuous Integration and Continuous Deployment (CI/CD) platform for GitHub developers. Save the Personal Access Token as a Repository Secret.Create a Spin Application in a GitHub Repository.Login to Cloud Signup for Cloud This page is editable via GitHub
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |