Revert "Add Platform linux/arm64 to Docker Build (#10441)" (#10477)

This reverts commit 4a37203da7.
This commit is contained in:
chris48s
2024-08-26 21:47:46 +01:00
committed by GitHub
parent 84897f3836
commit e001e94252
3 changed files with 0 additions and 17 deletions

View File

@@ -17,9 +17,6 @@ jobs:
contains(github.event.pull_request.labels.*.name, 'release')
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [amd64, arm64]
steps:
- name: Get current date
@@ -39,8 +36,6 @@ 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
@@ -53,7 +48,6 @@ 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 }}
@@ -70,7 +64,6 @@ 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 }}

View File

@@ -10,18 +10,12 @@ 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
@@ -38,7 +32,6 @@ jobs:
with:
context: .
push: true
platforms: linux/${{ matrix.architecture }}
tags: shieldsio/shields:next
build-args: |
version=${{ env.SHORT_SHA }}
@@ -58,7 +51,6 @@ jobs:
with:
context: .
push: true
platforms: linux/${{ matrix.architecture }}
tags: ghcr.io/badges/shields:next
build-args: |
version=${{ env.SHORT_SHA }}

View File

@@ -95,8 +95,6 @@ $ docker pull ghcr.io/badges/shields:next
$ docker pull ghcr.io/badges/shields:next
```
We push both linux/amd64 and linux/arm64 images. We use the linux/amd64 image ourselves to host shields.io. We push a linux/arm64 image, but we don't consume it ourselves and it receives no testing beyond ensuring the docker image builds without error.
### Building Docker Image Locally
Alternatively, you can build and run the server locally using Docker. First build an image: