We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04807ee commit ce3b3a6Copy full SHA for ce3b3a6
.github/workflows/build-and-push.yml
@@ -30,10 +30,21 @@ jobs:
30
username: ${{ github.actor }}
31
password: ${{ secrets.GITHUB_TOKEN }}
32
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
+
42
- name: Build and push Docker image
43
uses: docker/build-push-action@v5
44
with:
45
context: .
46
push: true
47
+ tags: ${{ steps.meta.outputs.tags }}
48
+ labels: ${{ steps.meta.outputs.labels }}
49
cache-from: type=gha
50
cache-to: type=gha,mode=max
0 commit comments