Skip to content

Commit

Permalink
docs: trigger output (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Jul 5, 2024
1 parent a6ace6f commit 9d17d21
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,29 @@ jobs:

# Output

The build will return image digests as output.
Return an image digest as output. This applies to builds or retagged images.

```yaml
- id: meaningful_id_name
uses: bcgov-nr/[email protected]
...
- id: deploy_with_digest
name: Deploy with digest
with:
digest: ${{ steps.meaningful_id_name.outputs.digest }}
- name: Echo digest
run: |
echo "Image digest: ${{ steps.meaningful_id_name.outputs.digest }}"
...
```

Has an image been built? [true|false]

```yaml
- id: meaningful_id_name
uses: bcgov-nr/[email protected]
...
- name: Echo build trigger
run: |
echo "Trigger result: ${{ steps.meaningful_id_name.outputs.triggered }}"
...
```

Expand Down

0 comments on commit 9d17d21

Please sign in to comment.