mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-29 23:05:34 +08:00
feature(ci): use matrix for container build
This commit is contained in:
parent
6850252e7c
commit
b1331ba3fe
14
.github/workflows/container_latest.yml
vendored
14
.github/workflows/container_latest.yml
vendored
@ -8,6 +8,11 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-latest:
|
build-latest:
|
||||||
runs-on: [ubuntu-latest]
|
runs-on: [ubuntu-latest]
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [ linux ]
|
||||||
|
arch: [ amd64, arm, arm64, 386 ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
@ -55,12 +60,17 @@ jobs:
|
|||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
file: ./docker/Dockerfile
|
file: ./docker/Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
|
platforms: ${{ matrix.platform }}/${{ matrix.arch }}
|
||||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||||
|
|
||||||
build-dev:
|
build-dev:
|
||||||
runs-on: [ubuntu-latest]
|
runs-on: [ubuntu-latest]
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [ linux ]
|
||||||
|
arch: [ amd64, arm, arm64, 386 ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
@ -109,6 +119,6 @@ jobs:
|
|||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
file: ./docker/Dockerfile.go_build
|
file: ./docker/Dockerfile.go_build
|
||||||
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
|
platforms: ${{ matrix.platform }}/${{ matrix.arch }}
|
||||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||||
|
Loading…
Reference in New Issue
Block a user