mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-05 22:17:41 +03:00
Update build-and-push.yml
Remove targets I personally don't need
This commit is contained in:
parent
1ce4a59e34
commit
b99ad1ec90
1 changed files with 2 additions and 11 deletions
13
.github/workflows/build-and-push.yml
vendored
13
.github/workflows/build-and-push.yml
vendored
|
@ -12,19 +12,11 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up QEMU (for cross-platform builds)
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
@ -38,11 +30,10 @@ jobs:
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: ${{ matrix.platform }}
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REGISTRY_IMAGE }}:latest
|
${{ env.REGISTRY_IMAGE }}:latest
|
||||||
${{ env.REGISTRY_IMAGE }}:${{ github.sha }}
|
${{ env.REGISTRY_IMAGE }}:${{ github.sha }}
|
||||||
${{ env.REGISTRY_IMAGE }}:${{ matrix.target }}
|
|
||||||
build-args: |
|
build-args: |
|
||||||
TARGET=${{ matrix.target }}
|
TARGET=x86_64-unknown-linux-musl
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue