Skip to content

Commit 60c0fda

Browse files
committed
More BPs
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
1 parent 854fc78 commit 60c0fda

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

content/v4/distributing-apps.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ url = "https://github.com/spinframework/spin-docs/blob/main/content/v4/distribut
1010
- [Logging In Using a Token](#logging-in-using-a-token)
1111
- [Fallback Credentials](#fallback-credentials)
1212
- [Publishing a Spin Application to a Registry](#publishing-a-spin-application-to-a-registry)
13+
- [Publishing and Build Profiles](#publishing-and-build-profiles)
1314
- [Running Published Applications](#running-published-applications)
1415
- [Running Published Applications by Digest](#running-published-applications-by-digest)
1516
- [Pulling a Published Application](#pulling-a-published-application)
@@ -68,6 +69,19 @@ Notice that the username is part of the reference; the registry does not infer i
6869

6970
> Whether newly uploaded artifacts are private or public depends on the registry. See your registry documentation. This will also tell you how to change the visibility if the default is not what you want.
7071
72+
### Publishing and Build Profiles
73+
74+
If your application has different [build profiles](./build.md#building-with-profiles), and you want to publish it using a profile other than the default, you must specify that profile when you publish. The pushed image will contain _only_ the selected profile. (You won't be able to specify a profile when you run it from the registry.)
75+
76+
<!-- @nocpy -->
77+
78+
```bash
79+
# Push the application in its default profile
80+
$ spin registry push --build ghcr.io/alyssa-p-hacker/hello-world:v1
81+
# Push the application in its debug profile
82+
$ spin registry push --profile debug --build ghcr.io/alyssa-p-hacker/hello-world-debug:v1
83+
```
84+
7185
## Running Published Applications
7286

7387
To run a published application from a registry, use `spin up -f` and pass the registry reference:

0 commit comments

Comments
 (0)