-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from DefangLabs/lio/add-command-arg
Add command input param
- Loading branch information
Showing
3 changed files
with
34 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
### Managing Config Values | ||
Defang allows you to [securely manage configuration values](https://docs.defang.io/docs/concepts/configuration). You can store your config using [GitHub Actions Secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions) and then pass them through to the Defang action. | ||
Defang allows you to [securely manage configuration values](https://docs.defang.io/docs/concepts/configuration). You can store your config using [GitHub Actions Secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions) and then pass them through to the Defang action. | ||
To publish a secret stored in GitHub to the cloud as a secure config value with defang, you need to do two things: | ||
|
@@ -83,6 +83,23 @@ jobs: | |
cli-version: v0.5.38 | ||
``` | ||
|
||
### Customizing the Defang Command | ||
|
||
If you want to customize the Defang command that is run, you can specify it using the `command` input. | ||
This is useful if you want to run a command other than `compose up` or if you want to pass additional arguments to the command. | ||
|
||
```yaml | ||
jobs: | ||
test: | ||
# [...] | ||
steps: | ||
# [...] | ||
- name: Deploy | ||
uses: DefangLabs/[email protected] | ||
with: | ||
command: "compose up --project-name my-project" | ||
``` | ||
|
||
### Full Example | ||
|
||
Here is a full example of a GitHub workflow that does everything we've discussed so far: | ||
|
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