Skip to content

Commit ce3b3a6

Browse files
committed
evidently needed
1 parent 04807ee commit ce3b3a6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build-and-push.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,21 @@ jobs:
3030
username: ${{ github.actor }}
3131
password: ${{ secrets.GITHUB_TOKEN }}
3232

33+
- name: Extract metadata for Docker
34+
id: meta
35+
uses: docker/metadata-action@v5
36+
with:
37+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
38+
tags: |
39+
type=raw,value=latest
40+
type=sha,format=short
41+
3342
- name: Build and push Docker image
3443
uses: docker/build-push-action@v5
3544
with:
3645
context: .
3746
push: true
47+
tags: ${{ steps.meta.outputs.tags }}
48+
labels: ${{ steps.meta.outputs.labels }}
3849
cache-from: type=gha
3950
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)