-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (48 loc) · 1.36 KB
/
release.yml
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
name: Release
on:
push:
tags:
- 'v*'
branches:
- op-migrate
jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
build:
- name: data-transport-layer
file: ./ops/docker/Dockerfile.packages
target: data-transport-layer
args: NODE_OPTIONS=--max-old-space-size=6144
- name: l2geth
file: ./ops/docker/Dockerfile.geth
target: ''
args: ''
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
platforms: amd64,arm64
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ${{ matrix.build.file }}
target: ${{ matrix.build.target }}
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository }}/${{ matrix.build.name }}:${{ github.ref_name }}
build-args: ${{ matrix.build.args }}
push: true