mirror of
https://github.com/craigerl/aprsd.git
synced 2025-05-23 18:12:25 -04:00
update manual build github
This commit is contained in:
parent
0c179005ee
commit
fa6e738a20
16
.github/workflows/manual_build.yml
vendored
16
.github/workflows/manual_build.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Manual master-dev docker container
|
||||
name: Manual Build docker container
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@ -14,13 +14,21 @@ on:
|
||||
- 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
|
||||
uses: tj-actions/branch-names@v7
|
||||
- name: Extract Branch
|
||||
id: extract_branch
|
||||
run: |
|
||||
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
|
||||
- name: What is the selected branch?
|
||||
run: |
|
||||
echo "Selected Branch '${{ steps.extract_branch.outputs.branch }}'"
|
||||
- name: Setup QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Setup Docker Buildx
|
||||
@ -37,8 +45,8 @@ jobs:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
file: ./Dockerfile-dev
|
||||
build-args: |
|
||||
BRANCH=master
|
||||
BRANCH=${{ steps.extract_branch.outputs.branch }}
|
||||
BUILDX_QEMU_ENV=true
|
||||
push: true
|
||||
tags: |
|
||||
hemna6969/aprsd:master-dev
|
||||
hemna6969/aprsd:${{ steps.extract_branch.outputs.branch }}
|
||||
|
@ -1,5 +1,9 @@
|
||||
FROM python:3.11-slim as build
|
||||
|
||||
ARG BRANCH=master
|
||||
ARG BUILDX_QEMU_ENV
|
||||
ENV APRSD_BRANCH=${BRANCH:-master}
|
||||
|
||||
ENV PIP_DEFAULT_TIMEOUT=100 \
|
||||
# Allow statements and log messages to immediately appear
|
||||
PYTHONUNBUFFERED=1 \
|
||||
@ -28,7 +32,7 @@ RUN set -ex \
|
||||
### Final stage
|
||||
FROM build as final
|
||||
|
||||
RUN git clone https://github.com/craigerl/aprsd
|
||||
RUN git clone -b $APRSD_BRANCH https://github.com/craigerl/aprsd
|
||||
RUN cd aprsd && pip install --no-cache-dir .
|
||||
RUN pip install gunicorn
|
||||
RUN which aprsd
|
||||
|
Loading…
x
Reference in New Issue
Block a user