Skip to content

Commit

Permalink
Add note about retrieving the build ID
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Nov 30, 2023
1 parent 20ef125 commit 76b3312
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions content/guides/ephemeral-registry.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,22 @@ depot build --save ...
If you are using GitHub Actions with the `depot/build-push-action`, you can add `save: true` as an input:

```yaml
- name: Build and push image
uses: depot/build-push-action@v1
- uses: depot/build-push-action@v1
with:
save: true
```
Notes about getting the build ID.
**Note:** To pull the image back or push it to another registry, you will need the build ID. The build ID is printed in the output of `depot build` and is automatically set as an output of the `depot/build-push-action`:

```yaml
- uses: depot/build-push-action@v1
id: build
with:
save: true
- name: Print build ID
run: echo ${{ steps.build.outputs.build-id }}
```

## Pulling

Expand Down

0 comments on commit 76b3312

Please sign in to comment.