update readme
This commit is contained in:
17
README.md
17
README.md
@@ -32,7 +32,22 @@ A composite action that simplifies building and pushing Docker images using Dock
|
||||
## 🛠️ Example Usage
|
||||
|
||||
```yaml
|
||||
- name: Build and push image 🏗️
|
||||
steps:
|
||||
- name: Checkout code 🛎️
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Docker meta 🏷️
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ vars.REMOTE_REGISTRY_URL }}/${{ vars.REMOTE_REGISTRY_NAMESPACE }}/my-app
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=sha
|
||||
|
||||
- name: Build and push image 🏗️
|
||||
uses: your-org/build-push-action@main
|
||||
with:
|
||||
image_name: ${{ vars.REMOTE_REGISTRY_URL }}/${{ vars.REMOTE_REGISTRY_NAMESPACE }}/my-app
|
||||
|
||||
Reference in New Issue
Block a user