Skip to content

Commit

Permalink
feat: added uefi version
Browse files Browse the repository at this point in the history
  • Loading branch information
mglants committed May 23, 2024
1 parent 1acbeec commit 6b4dec4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
9 changes: 7 additions & 2 deletions apps/rpi-dnsmasq/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM docker.io/alpine:3.20 as rpi

ARG VERSION
COPY ./serials /serials

ADD https://github.com/pftf/RPi4/releases/download/v1.37/RPi4_UEFI_Firmware_v1.37.zip RPi4_UEFI_Firmware.zip
ADD https://github.com/pftf/RPi4/releases/download/v${VERSION}/RPi4_UEFI_Firmware_v${VERSION}.zip RPi4_UEFI_Firmware.zip

RUN apk add --update --no-cache \
unzip \
Expand All @@ -15,4 +15,9 @@ RUN apk add --update --no-cache \
&& mkdir /tftp \
&& ls /serials | while read serial; do mkdir /tftp/$serial && cp -r /rpi4/* /tftp/$serial && cp -r /serials/$serial/* /tftp/$serial/; done
FROM quay.io/poseidon/dnsmasq:v0.5.0-31-gdc1adc8
LABEL xyz.glants.image.target_platform=$TARGETPLATFORM
LABEL xyz.glants.image.target_architecture=$TARGETARCH
LABEL xyz.glants.image.target_os=$TARGETOS
LABEL org.opencontainers.image.title="rpi-dnsmasq"
LABEL org.opencontainers.image.source="github.com/poseidon/dnsmasq"
COPY --from=rpi /tftp /var/lib/tftpboot
14 changes: 12 additions & 2 deletions apps/rpi-dnsmasq/ci/latest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
#!/usr/bin/env python

import requests
import json

# Get the latest version of matchbox

URL = "https://api.github.com/repos/pftf/RPi4/releases/latest"

def get_latest(channel):
return "v0.0.1"
r = requests.get(URL)
data = json.loads(r.text)
version = data['tag_name'].removeprefix("v")
return version

if __name__ == "__main__":
import sys
channel = sys.argv[1]
print(get_latest(channel))
print(get_latest(channel))

0 comments on commit 6b4dec4

Please sign in to comment.