mirror of
https://github.com/craigerl/aprsd.git
synced 2024-12-22 09:31:42 -05:00
Hemna
87cbcaa47f
This patch adds a 'fix' for trying to build on armv7 32bit system from a 64bit system. qemu seems broken in this case.
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: Build specific version
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
aprsd_version:
|
|
required: true
|
|
options:
|
|
- 2.5.9
|
|
- 2.6.0
|
|
logLevel:
|
|
description: 'Log level'
|
|
required: true
|
|
default: 'warning'
|
|
type: choice
|
|
options:
|
|
- info
|
|
- warning
|
|
- debug
|
|
jobs:
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Get Branch Name
|
|
id: branch-name
|
|
uses: tj-actions/branch-names@v6
|
|
- name: Setup QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
- name: Login to Docker HUB
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build the Docker image
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
context: "{{defaultContext}}:docker"
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
file: ./Dockerfile
|
|
build-args: |
|
|
VERSION=${{ inputs.aprsd_version }}
|
|
BUILDX_QEMU_ENV=true
|
|
push: true
|
|
tags: |
|
|
hemna6969/aprsd:v${{ inputs.aprsd_version }}
|
|
hemna6969/aprsd:latest
|