mirror of
https://github.com/mii443/ncb-tts-r2.git
synced 2025-08-22 16:15:29 +00:00
remove arm64 support
This commit is contained in:
43
.github/workflows/build.yml
vendored
43
.github/workflows/build.yml
vendored
@ -7,9 +7,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
platform: [linux/amd64, linux/arm64]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
name: Checkout
|
name: Checkout
|
||||||
@ -28,44 +25,12 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Extract platform for tagging
|
|
||||||
id: platform
|
|
||||||
run: |
|
|
||||||
platform_clean=$(echo "${{ matrix.platform }}" | tr '/' '-')
|
|
||||||
echo "clean=${platform_clean}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- uses: docker/build-push-action@v4
|
- uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
platforms: ${{ matrix.platform }}
|
platforms: linux/amd64
|
||||||
tags: ${{ steps.meta.outputs.tags }}-${{ steps.platform.outputs.clean }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=gha,scope=${{ steps.platform.outputs.clean }}
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max,scope=${{ steps.platform.outputs.clean }}
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
create-manifest:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: build
|
|
||||||
steps:
|
|
||||||
- uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: mii443
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- uses: docker/metadata-action@v4
|
|
||||||
id: meta
|
|
||||||
with:
|
|
||||||
images: ghcr.io/mii443/ncb-tts-r2
|
|
||||||
tags: |
|
|
||||||
type=semver,pattern={{version}}
|
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
|
||||||
|
|
||||||
- name: Create and push manifest
|
|
||||||
run: |
|
|
||||||
for tag in ${{ steps.meta.outputs.tags }}; do
|
|
||||||
docker manifest create $tag \
|
|
||||||
${tag}-linux-amd64 \
|
|
||||||
${tag}-linux-arm64
|
|
||||||
docker manifest push $tag
|
|
||||||
done
|
|
||||||
|
Reference in New Issue
Block a user