Skip to content

Commit d3f370d

Browse files
committed
Make README.md example usage more minimal
A reusable workflow will demo stiching this together with docker-build
1 parent 62e2f49 commit d3f370d

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

docker-push/README.md

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,15 @@ This GitHub Action is designed to push Docker images to Google Artifact Registry
1616
## Example Usage
1717

1818
```yaml
19-
jobs:
20-
push-image:
21-
runs-on: ubuntu-latest
22-
steps:
23-
- name: Checkout code
24-
uses: actions/checkout@v4
25-
with:
26-
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
27-
- name: Build Docker image
28-
id: build
29-
run: ...
30-
- name: Push Docker image to GAR
31-
uses: mozilla-it/deploy-actions/docker-push@v4
32-
with:
33-
gar_location: us-central1
34-
# typically provided from another step's output ${{ steps.build.outputs.image_tags }}
35-
image_tags: |
36-
us-docker.pkg.dev/moz-fx-tenant-realm/tenant-realm/my-image:latest
37-
us-docker.pkg.dev/moz-fx-tenant-realm/tenant-realm/my-image:v1.0.0
38-
project_id: moz-fx-tenant-realm
39-
workload_identity_pool_project_number: ${{ vars.GCPV2_WORKLOAD_IDENTITY_POOL_PROJECT_NUMBER }}
19+
- name: Push Docker image to GAR and GHCR
20+
uses: mozilla-it/deploy-actions/docker-push@v4
21+
with:
22+
gar_location: us
23+
# typically provided from another step's output
24+
image_tags: |
25+
ghcr.io/mozilla/my-repo/my-image:v1.0.0
26+
us-docker.pkg.dev/moz-fx-tenant-realm/tenant-realm/my-image:v1.0.0
27+
should_authenticate_to_ghcr: true
28+
project_id: moz-fx-tenant-realm
29+
workload_identity_pool_project_number: ${{ vars.GCPV2_WORKLOAD_IDENTITY_POOL_PROJECT_NUMBER }}
4030
```

0 commit comments

Comments
 (0)