mirror of
https://github.com/craigerl/aprsd.git
synced 2024-11-21 23:55:17 -05:00
Compare commits
3 Commits
19f804bf68
...
5add0f958d
Author | SHA1 | Date | |
---|---|---|---|
5add0f958d | |||
d40927d1c3 | |||
d5e56b553e |
47
.github/workflows/release_build.yml
vendored
Normal file
47
.github/workflows/release_build.yml
vendored
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
name: Build specific version
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
aprsd_version:
|
||||||
|
required: true
|
||||||
|
options:
|
||||||
|
- 2.5.9
|
||||||
|
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
|
||||||
|
file: ./Dockerfile
|
||||||
|
build-args: |
|
||||||
|
APRSD_VERSION=${{ inputs.aprsd_version }}
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
hemna6969/aprsd:v${{ inputs.aprsd_version }}
|
@ -6,6 +6,7 @@ FROM ubuntu:focal as aprsd
|
|||||||
ARG UID
|
ARG UID
|
||||||
ARG GID
|
ARG GID
|
||||||
ARG TZ
|
ARG TZ
|
||||||
|
ARG APRSD_VERSION=2.5.9
|
||||||
ENV APRS_USER=aprs
|
ENV APRS_USER=aprs
|
||||||
ENV HOME=/home/aprs
|
ENV HOME=/home/aprs
|
||||||
ENV TZ=${TZ:-US/Eastern}
|
ENV TZ=${TZ:-US/Eastern}
|
||||||
@ -13,6 +14,8 @@ ENV UID=${UID:-1000}
|
|||||||
ENV GID=${GID:-1000}
|
ENV GID=${GID:-1000}
|
||||||
ENV LC_ALL=C.UTF-8
|
ENV LC_ALL=C.UTF-8
|
||||||
ENV LANG=C.UTF-8
|
ENV LANG=C.UTF-8
|
||||||
|
ENV APRSD_PIP_VERSION=${APRSD_VERSION}
|
||||||
|
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt update
|
RUN apt update
|
||||||
@ -24,7 +27,7 @@ RUN addgroup --gid $GID $APRS_USER
|
|||||||
RUN useradd -m -u $UID -g $APRS_USER $APRS_USER
|
RUN useradd -m -u $UID -g $APRS_USER $APRS_USER
|
||||||
|
|
||||||
# Install aprsd
|
# Install aprsd
|
||||||
RUN pip install aprsd
|
RUN pip install aprsd==$APRSD_PIP_VERSION
|
||||||
|
|
||||||
# Ensure /config is there with a default config file
|
# Ensure /config is there with a default config file
|
||||||
USER root
|
USER root
|
||||||
|
Loading…
Reference in New Issue
Block a user