-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (38 loc) · 1.12 KB
/
docker.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
name: docker
on:
push:
branches:
- master
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
docker:
name: docker
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- {"name": "centos7", "file": "centos7"}
- {"name": "centos8", "file": "centos8"}
- {"name": "ubuntu1604", "version": "xenial", "file": "ubuntu"}
- {"name": "ubuntu1804", "version": "bionic", "file": "ubuntu"}
- {"name": "ubuntu2004", "version": "focal", "file": "ubuntu"}
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.${{ matrix.os.file }}
platforms: linux/amd64,linux/arm64
tags: vesoft/nebula-dev:${{ matrix.os.name }}
push: true
build-args: VERSION=${{ matrix.os.version }}