-
Notifications
You must be signed in to change notification settings - Fork 7
80 lines (70 loc) · 2.53 KB
/
release.yml
File metadata and controls
80 lines (70 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Docker
on:
push:
tags:
- '*'
release:
types: [published]
jobs:
build-and-push:
runs-on:
group: scroll-reth-runner-group
permissions: {}
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Set up QEMU
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
with:
cache-binary: false
- name: Extract docker metadata (stable)
id: meta-stable
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
with:
images: scrolltech/rollup-node
tags: |
type=ref,event=tag,enable=${{ github.event_name == 'push' }}
type=raw,value=latest,enable=${{ github.event_name == 'release' }}
flavor: |
latest=false
- name: Extract docker metadata (nightly)
id: meta-nightly
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
with:
images: scrolltech/rollup-node
tags: |
type=ref,event=tag,enable=${{ github.event_name == 'push' }},suffix=-nightly
type=raw,value=latest-nightly,enable=${{ github.event_name == 'release' }}
flavor: |
latest=false
- name: Login to Docker Hub
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 #v3.7.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build docker image (stable)
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
with:
context: .
file: Dockerfile
push: true
tags: ${{ steps.meta-stable.outputs.tags }}
labels: ${{ steps.meta-stable.outputs.labels }}
cache-from: type=gha,scope=${{ github.workflow }}-stable
cache-to: type=gha,scope=${{ github.workflow }}-stable
- name: Build docker image (nightly)
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
with:
context: .
file: Dockerfile
push: true
tags: ${{ steps.meta-nightly.outputs.tags }}
labels: ${{ steps.meta-nightly.outputs.labels }}
build-args: |
CARGO_FEATURES=js-tracer
cache-from: type=gha,scope=${{ github.workflow }}-nightly
cache-to: type=gha,scope=${{ github.workflow }}-nightly