Skip to content

Commit 75f8cb8

Browse files
Update workflow-syntax-for-github-actions.md
1 parent 667da58 commit 75f8cb8

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

content/actions/reference/workflow-syntax-for-github-actions.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ jobs:
542542
uses: docker://alpine:3.8
543543
```
544544

545-
##### Example using a Docker public registry action
545+
##### Example using a Github Container Registry
546546

547547
`docker://{host}/{image}:{tag}`
548548

@@ -556,6 +556,20 @@ jobs:
556556
uses: docker://ghcr.io/cloud-builders/gradle
557557
```
558558

559+
##### Example using a Docker public registry action
560+
561+
`docker://{host}/{image}:{tag}`
562+
563+
A Docker image in a public registry - <sub>[Google Container Registry - GCR](https://cloud.google.com/container-registry)</sub>
564+
565+
```yaml
566+
jobs:
567+
my_first_job:
568+
steps:
569+
- name: My first step
570+
uses: docker://gcr.io/cloud-builders/gradle
571+
```
572+
559573
#### **`jobs.<job_id>.steps.run`**
560574

561575
Runs command-line programs using the operating system's shell. If you do not provide a `name`, the step name will default to the text specified in the `run` command.

0 commit comments

Comments
 (0)