Add Platform linux/arm64 to Docker Build (#10441)
* Add linux/arm64 Platform to Docker Build * Update Next Workflow * add a note to the docs about linux/arm64 * Update Build Jobs * push both architectures to GHCR * only push linux/arm64 for snapshots, not next tag * Use Matrix Build * revert docs changes --------- Co-authored-by: chris48s <git@chris-shaw.dev> Co-authored-by: chris48s <chris48s@users.noreply.github.com>
This commit is contained in:
7
.github/workflows/create-release.yml
vendored
7
.github/workflows/create-release.yml
vendored
@@ -17,6 +17,9 @@ jobs:
|
||||
contains(github.event.pull_request.labels.*.name, 'release')
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
architecture: [amd64, arm64]
|
||||
|
||||
steps:
|
||||
- name: Get current date
|
||||
@@ -36,6 +39,8 @@ jobs:
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
platforms: linux/${{ matrix.architecture }}
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
@@ -48,6 +53,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/${{ matrix.architecture }}
|
||||
tags: shieldsio/shields:server-${{ steps.date.outputs.date }}
|
||||
build-args: |
|
||||
version=server-${{ steps.date.outputs.date }}
|
||||
@@ -64,6 +70,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/${{ matrix.architecture }}
|
||||
tags: ghcr.io/badges/shields:server-${{ steps.date.outputs.date }}
|
||||
build-args: |
|
||||
version=server-${{ steps.date.outputs.date }}
|
||||
|
||||
8
.github/workflows/publish-docker-next.yml
vendored
8
.github/workflows/publish-docker-next.yml
vendored
@@ -10,12 +10,18 @@ permissions:
|
||||
jobs:
|
||||
publish-docker-next:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
architecture: [amd64, arm64]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
platforms: linux/${{ matrix.architecture }}
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
@@ -32,6 +38,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/${{ matrix.architecture }}
|
||||
tags: shieldsio/shields:next
|
||||
build-args: |
|
||||
version=${{ env.SHORT_SHA }}
|
||||
@@ -51,6 +58,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/${{ matrix.architecture }}
|
||||
tags: ghcr.io/badges/shields:next
|
||||
build-args: |
|
||||
version=${{ env.SHORT_SHA }}
|
||||
|
||||
Reference in New Issue
Block a user