@@ -21,21 +21,38 @@ jobs:
21
21
- cksolo
22
22
- ckstats
23
23
- fulcrum
24
+
24
25
steps :
25
- - name : Checkout repo
26
+ - name : 🧾 Checkout repo
26
27
uses : actions/checkout@v4
27
28
28
- - name : Log in to DockerHub
29
+ - name : 🔐 Log in to DockerHub
29
30
uses : docker/login-action@v3
30
31
with :
31
32
username : ${{ secrets.DOCKERHUB_USERNAME }}
32
33
password : ${{ secrets.DOCKERHUB_TOKEN }}
33
34
34
- - name : Build and push Docker image
35
+ - name : 🏷️ Extract metadata (tags, labels)
36
+ id : meta
37
+ uses : docker/metadata-action@v5
38
+ with :
39
+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/btc-${{ matrix.component }}
40
+ tags : |
41
+ latest
42
+
43
+ - name : 🐳 Build and push Docker image
35
44
uses : docker/build-push-action@v5
36
45
with :
37
46
context : ./${{ matrix.component }}
38
47
file : ./${{ matrix.component }}/Dockerfile
39
48
push : true
40
- tags : |
41
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/btc-${{ matrix.component }}:latest
49
+ tags : ${{ steps.meta.outputs.tags }}
50
+ labels : ${{ steps.meta.outputs.labels }}
51
+
52
+ - name : 📢 Publish README to Docker Hub
53
+ uses : peter-evans/docker-description@v4
54
+ with :
55
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
56
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
57
+ repository : ${{ env.IMAGE_NAMESPACE }}/btc-${{ matrix.component }}
58
+ readme-filepath : ./${{ matrix.component }}/README.md
0 commit comments