@@ -24,57 +24,24 @@ jobs:
2424 username : ${{ github.actor }}
2525 password : ${{ secrets.GITHUB_TOKEN }}
2626
27- # Default (Debian) image
28- - id : meta-default
27+ - id : meta
2928 uses : docker/metadata-action@v5
3029 with :
3130 images : ghcr.io/hanzoai/replicate
3231 tags : |
3332 type=ref,event=branch
3433 type=ref,event=pr
35- type=sha
36- type=sha,format=long
3734 type=semver,pattern={{version}}
3835 type=semver,pattern={{major}}.{{minor}}
3936
4037 - uses : docker/build-push-action@v6
4138 with :
4239 context : .
43- target : default
4440 push : true
4541 provenance : true
4642 sbom : true
4743 platforms : ${{ env.PLATFORMS }}
48- tags : ${{ steps.meta-default.outputs.tags }}
49- labels : ${{ steps.meta-default.outputs.labels }}
50- build-args : |
51- REPLICATE_VERSION=${{ env.VERSION }}
52-
53- # Hardened (Scratch) image
54- - id : meta-scratch
55- uses : docker/metadata-action@v5
56- with :
57- images : ghcr.io/hanzoai/replicate
58- flavor : |
59- latest=auto
60- suffix=-scratch
61- tags : |
62- type=ref,event=branch
63- type=ref,event=pr
64- type=sha
65- type=sha,format=long
66- type=semver,pattern={{version}}
67- type=semver,pattern={{major}}.{{minor}}
68-
69- - uses : docker/build-push-action@v6
70- with :
71- context : .
72- target : hardened
73- push : true
74- provenance : true
75- sbom : true
76- platforms : ${{ env.PLATFORMS }}
77- tags : ${{ steps.meta-scratch.outputs.tags }}
78- labels : ${{ steps.meta-scratch.outputs.labels }}
44+ tags : ${{ steps.meta.outputs.tags }}
45+ labels : ${{ steps.meta.outputs.labels }}
7946 build-args : |
8047 REPLICATE_VERSION=${{ env.VERSION }}
0 commit comments