Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Support pushing images to dockerhub on release. Closes #77

Gabe Kangasc9884f3ec028
diff --git a/scripts/Dockerfile-build b/scripts/Dockerfile-build
index 7ba3af348c..ae55a2d8fa 100644
--- a/scripts/Dockerfile-build
+++ b/scripts/Dockerfile-build
@@ -13,7 +13,7 @@ ENV GIT_COMMIT=${GIT_COMMIT}
ARG NAME
ENV NAME=${NAME}
-RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -ldflags "-extldflags \"-static\" -X main.GitCommit=$GIT_COMMIT -X main.BuildVersion=$VERSION -X main.BuildType=$NAME" -o owncast .
+RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -ldflags "-extldflags \"-static\" -s -w -X main.GitCommit=$GIT_COMMIT -X main.BuildVersion=$VERSION -X main.BuildType=$NAME" -o owncast .
WORKDIR /app
CMD ["/app/owncast", "-enableVerboseLogging"]
diff --git a/scripts/build.sh b/scripts/build.sh
index 969d85b689..98afc4a054 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -60,9 +60,9 @@ build() {
rm -rf dist/${NAME}/
}
-for i in "${!DISTRO[@]}"; do
- build ${DISTRO[$i]} ${OS[$i]} ${ARCH[$i]} $VERSION $GIT_COMMIT
-done
+#for i in "${!DISTRO[@]}"; do
+# build ${DISTRO[$i]} ${OS[$i]} ${ARCH[$i]} $VERSION $GIT_COMMIT
+#done
# Create the tag
# git tag -a "v${VERSION}" -m "Release build v${VERSION}"
@@ -81,6 +81,12 @@ done
# # Change to the root directory of the repository
# cd $(git rev-parse --show-toplevel)
#
+# Github Packages
# docker build --build-arg NAME=docker --build-arg VERSION=${VERSION} --build-arg GIT_COMMIT=$GIT_COMMIT -t owncast . -f scripts/Dockerfile-build
# docker tag $DOCKER_IMAGE docker.pkg.github.com/gabek/owncast/$DOCKER_IMAGE:$VERSION
# docker push docker.pkg.github.com/gabek/owncast/$DOCKER_IMAGE:$VERSION
+#
+# Dockerhub
+# You must be authenticated via `docker login` with your Dockerhub credentials first.
+# docker tag owncast gabekangas/owncast:$VERSION
+# docker push gabekangas/owncast
\ No newline at end of file