mirror of
https://github.com/owncast/owncast.git
synced 2024-10-23 13:05:56 +03:00
Support pushing images to dockerhub on release. Closes #77
This commit is contained in:
parent
bacf26508e
commit
403d5c4a2f
2 changed files with 10 additions and 4 deletions
|
@ -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"]
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue