Update build-and-push.yml

Remove targets I personally don't need
This commit is contained in:
LucifersCircle 2024-11-28 23:36:05 -08:00
parent 1ce4a59e34
commit b99ad1ec90

View file

@ -12,19 +12,11 @@ env:
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform: [linux/amd64, linux/arm64, linux/arm/v7]
target: [x86_64-unknown-linux-musl, aarch64-unknown-linux-musl, armv7-unknown-linux-musleabihf]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up QEMU (for cross-platform builds)
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
@ -38,11 +30,10 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ matrix.platform }}
platforms: linux/amd64
push: true
tags: |
${{ env.REGISTRY_IMAGE }}:latest
${{ env.REGISTRY_IMAGE }}:${{ github.sha }}
${{ env.REGISTRY_IMAGE }}:${{ matrix.target }}
build-args: |
TARGET=${{ matrix.target }}
TARGET=x86_64-unknown-linux-musl