2727 with :
2828 cache-binary : false
2929
30- - name : Extract docker metadata
31- id : meta
30+ - name : Extract docker metadata (stable)
31+ id : meta-stable
3232 uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
3333 with :
3434 images : scrolltech/rollup-node
@@ -38,19 +38,43 @@ jobs:
3838 flavor : |
3939 latest=false
4040
41+ - name : Extract docker metadata (nightly)
42+ id : meta-nightly
43+ uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
44+ with :
45+ images : scrolltech/rollup-node
46+ tags : |
47+ type=ref,event=tag,enable=${{ github.event_name == 'push' }},suffix=-nightly
48+ type=raw,value=latest-nightly,enable=${{ github.event_name == 'release' }}
49+ flavor : |
50+ latest=false
51+
4152 - name : Login to Docker Hub
4253 uses : docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
4354 with :
4455 username : ${{ secrets.DOCKERHUB_USERNAME }}
4556 password : ${{ secrets.DOCKERHUB_TOKEN }}
4657
47- - name : Build docker image
58+ - name : Build docker image (stable)
59+ uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
60+ with :
61+ context : .
62+ file : Dockerfile
63+ push : true
64+ tags : ${{ steps.meta-stable.outputs.tags }}
65+ labels : ${{ steps.meta-stable.outputs.labels }}
66+ cache-from : type=gha,scope=${{ github.workflow }}-stable
67+ cache-to : type=gha,scope=${{ github.workflow }}-stable
68+
69+ - name : Build docker image (nightly)
4870 uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
4971 with :
5072 context : .
5173 file : Dockerfile
5274 push : true
53- tags : ${{ steps.meta.outputs.tags }}
54- labels : ${{ steps.meta.outputs.labels }}
55- cache-from : type=gha,scope=${{ github.workflow }}
56- cache-to : type=gha,scope=${{ github.workflow }}
75+ tags : ${{ steps.meta-nightly.outputs.tags }}
76+ labels : ${{ steps.meta-nightly.outputs.labels }}
77+ build-args : |
78+ CARGO_FEATURES=js-trace
79+ cache-from : type=gha,scope=${{ github.workflow }}-nightly
80+ cache-to : type=gha,scope=${{ github.workflow }}-nightly
0 commit comments