-
Notifications
You must be signed in to change notification settings - Fork 22
48 lines (44 loc) · 1.07 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
41
42
43
44
45
46
47
48
name: docker
on:
workflow_dispatch:
push:
branches:
- 'master'
paths:
- 'docker/buildx/**.Dockerfile'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
docker:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- centos-7
- centos-8
- ubuntu-2004
- ubuntu-2204
steps:
- name: Setup environment variables
id: vars
run: |
echo "TAG=$(echo ${{ matrix.os }} | tr -d '-')" >> $GITHUB_OUTPUT
- 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: ./docker/buildx/${{ matrix.os }}.Dockerfile
platforms: linux/amd64,linux/arm64
tags: vesoft/third-party-build:${{ steps.vars.outputs.TAG }}
push: true