Skip to content

Commit

Permalink
Use simple bash script for building
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorsApps committed Dec 25, 2024
1 parent 76d0e3c commit 1059521
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
23 changes: 0 additions & 23 deletions Makefile

This file was deleted.

21 changes: 21 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

REACT_APP_HOME_TITLE="Home Audio"
REACT_APP_SNAPCAST_HOST="ws://node-a.connorskees.com:1780"
IMAGE_REGISTRY="registry.connorskees.com/lib/snapcast-listener"
IMAGE_TAG="1.x.x"
BUILD_PLATFORMS="linux/arm64,linux/amd64"

docker buildx rm snapcast-ui 2>/dev/null

docker buildx create --use --name snapcast-ui

docker buildx build . \
--build-arg "REACT_APP_HOME_TITLE=${REACT_APP_HOME_TITLE}" \
--build-arg "REACT_APP_SNAPCAST_HOST=${REACT_APP_SNAPCAST_HOST}" \
--platform "${BUILD_PLATFORMS}" \
--tag "${IMAGE_REGISTRY}:latest" \
--tag "${IMAGE_REGISTRY}:${IMAGE_TAG}" \
--output type=registry \
--push

docker buildx rm snapcast-ui

0 comments on commit 1059521

Please sign in to comment.