allow limit to single arch
This commit is contained in:
@@ -10,7 +10,17 @@ on:
|
|||||||
- 'Makefile*'
|
- 'Makefile*'
|
||||||
- 'make_debian.sh'
|
- 'make_debian.sh'
|
||||||
- 'contrib/docker/**'
|
- 'contrib/docker/**'
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
limitarch:
|
||||||
|
description: Limit to this architecture
|
||||||
|
required: false
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- amd64
|
||||||
|
- '386'
|
||||||
|
- arm/v7
|
||||||
|
- arm64
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -35,4 +45,4 @@ jobs:
|
|||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
-
|
-
|
||||||
name: build
|
name: build
|
||||||
run: cd contrib/docker && ./build.sh
|
run: cd contrib/docker && LIMITARCH=${{ inputs.limitarch }} ./build.sh
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ if [[ "$1" == "-h" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
archs=linux/amd64,linux/386,linux/arm/v7,linux/arm64
|
archs=linux/amd64,linux/386,linux/arm/v7,linux/arm64
|
||||||
|
if [[ -n "$LIMITARCH" ]]; then
|
||||||
|
archs=$(echo ",$archs," | sed -e "s#.*,\([^,/]*/$LIMITARCH\),.*#\1#")
|
||||||
|
fi
|
||||||
if [[ -z "$1" ]] || [[ "x$1" == "xrelease" ]]; then
|
if [[ -z "$1" ]] || [[ "x$1" == "xrelease" ]]; then
|
||||||
UPLOAD_URL=
|
UPLOAD_URL=
|
||||||
elif [[ -z "$UPLOAD_URL" ]]; then
|
elif [[ -z "$UPLOAD_URL" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user