diff --git a/Makefile b/Makefile deleted file mode 100644 index be115df..0000000 --- a/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -# Makefile - -REACT_APP_HOME_TITLE := "Home Audio" -REACT_APP_SNAPCAST_HOST := "ws://192.168.18.153:1780" -IMAGE_REGISTRY := "" -IMAGE_TAG := "1.1.3" -BUILD_PLATFORMS := "linux/arm64,linux/amd64" - -.PHONY: build -build: - -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 - - docker buildx rm snapcast-ui diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..d1e8108 --- /dev/null +++ b/build.sh @@ -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