Skip to content

Commit

Permalink
Update README.md to add a second option to cloud build
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan authored Dec 2, 2023
1 parent 9d3ff8b commit 17641dd
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,21 @@ docker run -ti ghcr.io/apigee/apigeecli:latest orgs list -t $token

### Using apigeecli with Cloud Build

To execute apigeecli commands in cloud build,

```
steps:
- id: 'Run apigeecli commands'
name: ghcr.io/apigee/apigeecli:latest
args:
- 'orgs'
- 'get'
- '-o'
- '$PROJECT_ID'
- '--metadata-token'
```

If you need the response from the previous command as input to the next, then take advantage of `sh` and `jq` like so:
```yaml
steps:
- id: 'Run apigeecli commands'
Expand All @@ -141,7 +156,7 @@ steps:
apigeecli token cache --metadata-token
# run other commands here
apigeecli orgs list
apigeecli orgs list | jq
```
### Access shell
Expand Down

0 comments on commit 17641dd

Please sign in to comment.