mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-04 04:48:26 +00:00
workflows: build image in parallel (#2361)
* Enable GitHub matrix strategy to run builds in parallel * apply matrix build for the other images Signed-off-by: Rui Chen <rui@chenrui.dev> Co-authored-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
10
.github/workflows/atlantis-base.yml
vendored
10
.github/workflows/atlantis-base.yml
vendored
@@ -18,8 +18,14 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
platform:
|
||||
- linux/arm64/v8
|
||||
- linux/amd64
|
||||
- linux/arm/v7
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@@ -44,7 +50,7 @@ jobs:
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: docker-base
|
||||
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
|
||||
platforms: ${{ matrix.platform }}
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/atlantis-base:${{env.TODAY}}
|
||||
|
||||
12
.github/workflows/atlantis-image.yml
vendored
12
.github/workflows/atlantis-image.yml
vendored
@@ -16,6 +16,12 @@ concurrency:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
platform:
|
||||
- linux/arm64/v8
|
||||
- linux/amd64
|
||||
- linux/arm/v7
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v3
|
||||
@@ -44,7 +50,7 @@ jobs:
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
|
||||
platforms: ${{ matrix.platform }}
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/atlantis:dev
|
||||
@@ -59,7 +65,7 @@ jobs:
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
|
||||
platforms: ${{ matrix.platform }}
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/atlantis:${{ env.RELEASE_VERSION }}
|
||||
@@ -70,7 +76,7 @@ jobs:
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
|
||||
platforms: ${{ matrix.platform }}
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/atlantis:${{ env.RELEASE_VERSION }}
|
||||
|
||||
8
.github/workflows/testing-env-image.yml
vendored
8
.github/workflows/testing-env-image.yml
vendored
@@ -16,6 +16,12 @@ concurrency:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
platform:
|
||||
- linux/arm64/v8
|
||||
- linux/amd64
|
||||
- linux/arm/v7
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@@ -40,7 +46,7 @@ jobs:
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: testing
|
||||
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
|
||||
platforms: ${{ matrix.platform }}
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/runatlantis/testing-env:${{env.TODAY}}
|
||||
|
||||
Reference in New Issue
Block a user