mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-05-03 13:07:48 +08:00
fix(ci): use matrix for all container runs
This commit is contained in:
parent
b1331ba3fe
commit
7b56a6400d
14
.github/workflows/container_release.yml
vendored
14
.github/workflows/container_release.yml
vendored
@ -9,6 +9,11 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-default:
|
build-default:
|
||||||
runs-on: [ubuntu-latest]
|
runs-on: [ubuntu-latest]
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [ linux ]
|
||||||
|
arch: [ amd64, arm, arm64, 386 ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
@ -59,11 +64,16 @@ 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 }}
|
||||||
build-large:
|
build-large:
|
||||||
runs-on: [ubuntu-latest]
|
runs-on: [ubuntu-latest]
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [ linux ]
|
||||||
|
arch: [ amd64, arm, arm64, 386 ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
@ -114,6 +124,6 @@ jobs:
|
|||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
file: ./docker/Dockerfile.go_build_large
|
file: ./docker/Dockerfile.go_build_large
|
||||||
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 }}
|
||||||
|
7
.github/workflows/container_test.yml
vendored
7
.github/workflows/container_test.yml
vendored
@ -12,6 +12,11 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
build-test:
|
build-test:
|
||||||
runs-on: [ubuntu-latest]
|
runs-on: [ubuntu-latest]
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [ linux ]
|
||||||
|
arch: [ amd64, arm, arm64, 386 ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
@ -44,6 +49,6 @@ 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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user