-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start replacing fly auth token
with more limited tokens
#1741
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,6 +1,6 @@ | ||
Shows the authentication token that is currently in use. | ||
This can be used as an authentication token with API services, | ||
independent of flyctl. | ||
Shows the authentication token that is currently in use by flyctl. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This content is extracted from the source code. Started a new PR for this: superfly/flyctl#3824 |
||
|
||
This can be used as an authentication token with API services. These tokens may expire quickly and shouldn't be used in places where the token needs to keep working for a long time. Use `fly tokens create` instead for creating narrowly scoped tokens that can have a custom expiry. | ||
|
||
|
||
## Usage | ||
|
@@ -26,4 +26,3 @@ fly auth token [flags] | |
## See Also | ||
|
||
* [fly auth](/docs/flyctl/auth/) - Manage authentication | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can create org tokens in the dashboard now too if we want to keep this:
https://fly.io/dashboard/<org>/tokens
or https://fly.io/dashboard/personal/tokensThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added it back. I removed the link, since just linking to the personal org dashboard might confuse some users.