Skip to content

Commit c73ded5

Browse files
committed
Attempt to get docker branch builds working
1 parent 943d3d4 commit c73ded5

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed

.github/workflows/docker-build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ jobs:
2525
uses: actions/checkout@v2
2626

2727
- name: Set up QEMU
28-
uses: docker/setup-qemu-action@v1
28+
uses: docker/setup-qemu-action@v2
2929

3030
# setup Docker buld action
3131
- name: Set up Docker Buildx
3232
id: buildx
33-
uses: docker/setup-buildx-action@v1
33+
uses: docker/setup-buildx-action@v2
3434

3535
- name: Login to DockerHub
36-
uses: docker/login-action@v1
36+
uses: docker/login-action@v2
3737
with:
3838
username: ${{ secrets.DOCKERHUB_USERNAME }}
3939
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -59,11 +59,12 @@ jobs:
5959
id: extract_repository
6060

6161
- name: Build image and push to Docker Hub
62-
uses: docker/build-push-action@v2
62+
uses: docker/build-push-action@v4
6363
with:
6464
# relative path to the place where source code with Dockerfile is located
6565
context: .
6666
file: ./Docker/Dockerfile
67+
build-args: "FPPBRANCH=${{ steps.extract_branch.outputs.branch }}"
6768
# Note: tags has to be all lower-case
6869
platforms: linux/amd64,linux/arm64,linux/arm/v7
6970
tags: ${{ env.IMAGE_REPOSITORY }}/fpp:${{ steps.extract_branch.outputs.branch }},${{ env.IMAGE_REPOSITORY }}/fpp:latest

Docker/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ RUN ( yes | /root/buildVLC.sh ) || true
3030
# directory
3131
ARG EXTRA_INSTALL_FLAG=
3232

33+
# branch being build
34+
ARG FPPBRANCH
35+
3336
ADD ./ /opt/fpp/
3437
ADD SD/FPP_Install.sh /root/FPP_Install.sh
35-
RUN ( yes | /root/FPP_Install.sh $EXTRA_INSTALL_FLAG --skip-apt-install --skip-vlc ) || true
38+
RUN ( yes | /root/FPP_Install.sh $EXTRA_INSTALL_FLAG --branch ${FPPBRANCH:-master} --skip-apt-install --skip-vlc ) || true
3639
RUN rm -rf /tmp/*
3740
RUN cp /opt/fpp/etc/asoundrc.plain /root/.asoundrc
3841

SD/FPP_Install.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@
4747
# hardware which does not support Bullseye may have issues.
4848
#
4949
#############################################################################
50-
SCRIPTVER="7.0"
5150
FPPBRANCH=${FPPBRANCH:-"master"}
52-
FPPIMAGEVER="2023-02"
51+
FPPIMAGEVER="2023-04"
5352
FPPCFGVER="77"
5453
FPPPLATFORM="UNKNOWN"
5554
FPPDIR=/opt/fpp
@@ -232,6 +231,11 @@ while [ -n "$1" ]; do
232231
isimage=false
233232
shift
234233
;;
234+
--branch)
235+
FPPBRANCH=$2
236+
shift
237+
shift
238+
;;
235239
*)
236240
echo "Unknown option $1" >&2
237241
exit 1
@@ -243,8 +247,6 @@ checkTimeAgainstUSNO
243247

244248
#############################################################################
245249
echo "============================================================"
246-
echo "$0 v${SCRIPTVER}"
247-
echo ""
248250
echo "FPP Image Version: v${FPPIMAGEVER}"
249251
echo "FPP Directory : ${FPPDIR}"
250252
echo "FPP Branch : ${FPPBRANCH}"

SD/README.BBB

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# FPP BBB Images creation notes (work in progress)
22
#
33
# FPP images are currently based on the following Debian BeagleBone images:
4-
# am335x-debian-11.4-minimal-armhf-2022-09-02-2gb.img.xz
5-
# from https://rcn-ee.net/rootfs/bb.org/testing/2022-09-02/bullseye-minimal-armhf/
4+
# am335x-debian-11.6-minimal-armhf-2023-04-06-2gb.img
5+
# from https://rcn-ee.net/rootfs/bb.org/testing/2023-04-06/bullseye-minimal-armhf/
66
#
77
# The below steps (much can be run via copy/paste into a terminal) will
88
# prepare the "clean image" from above to have the appropriate

dockerBuild.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22

3+
FPPBRANCH=${FPPBRANCH:-"master"}
4+
35
# build the docker image
4-
docker build -t falconchristmas/fpp:latest -f Docker/Dockerfile .
6+
docker build -t falconchristmas/fpp:latest -f Docker/Dockerfile --build-arg FPPBRANCH=${FPPBRANCH} .
57
#or
68
#docker build -t falconchristmas/fpp:latest --build-arg EXTRA_INSTALL_FLAG=--skip-clone -f Docker/Dockerfile .
79

0 commit comments

Comments
 (0)