-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start replacing
fly auth token
with more limited tokens (#1741)
* start replacing `fly auth token` with more limited tokens * address review feedback
- Loading branch information
Showing
6 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: "Laravel GitHub Actions: CICD" | ||
layout: framework_docs | ||
objective: Configure continuous integration and development on your Laravel Fly App through GitHub. | ||
objective: Configure continuous integration and development on your Laravel Fly App through GitHub. | ||
order: 3 | ||
--- | ||
|
||
|
@@ -20,7 +20,7 @@ In this section, you'll create a new Laravel application, configure and deploy i | |
composer create-project laravel/laravel fly-laravel | ||
cd fly-laravel | ||
# Auto generate your `fly.toml` configuration file: | ||
# Auto generate your `fly.toml` configuration file: | ||
# Add in the ams region with --region | ||
# Auto deploy using --now while your at it! | ||
flyctl launch --region ams --now | ||
|
@@ -43,11 +43,11 @@ git remote add origin [email protected]:<username>/<repository-name>.git | |
|
||
## GitHub CI Action: Auto Deploy to Fly.io | ||
|
||
Once you have your Laravel application set up with a github repository, you can configure some GitHub Actions to auto deploy your changes. | ||
Once you have your Laravel application set up with a github repository, you can configure some GitHub Actions to auto deploy your changes. | ||
|
||
In this guide, you'll be using `Fly.io`'s very own [GitHub action template here](https://github.com/superfly/flyctl-actions) to help deploy your application. | ||
|
||
1) Generate a `Fly token` with `fly auth token` | ||
1) Generate a `Fly token` with `fly tokens deploy` | ||
|
||
2) Then save your newly generated `FLY_API_TOKEN` in your github repository either through the GitHub Console or GitHub CLI: | ||
|
||
|
@@ -110,4 +110,4 @@ git commit -m "Configure auto-deploy through GitHub Actions" | |
git push | ||
``` | ||
|
||
5) Visit the Actions tab of your repository and see how your deployment fares! | ||
5) Visit the Actions tab of your repository and see how your deployment fares! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters