mirror of
https://github.com/owncast/owncast.git
synced 2024-11-27 17:59:21 +03:00
c74d5b4f31
* add shellcheck to ci * test ci * install bash for shellcheck * set globstar for bash * cleanup shell scripts * do not ignore automated hls tests * rm legacy build script * update shell scripts * cleanup ci * Fix misspell * cleanup ci * fail on curl error in ci
15 lines
581 B
Bash
Executable file
15 lines
581 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Docker build
|
|
# Must authenticate first: https://docs.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-docker-for-use-with-github-packages#authenticating-to-github-packages
|
|
DOCKER_IMAGE="owncast"
|
|
DATE=$(date +"%Y%m%d")
|
|
TAG="webv2"
|
|
VERSION="${DATE}-${TAG}"
|
|
echo "Building Docker image ${DOCKER_IMAGE}..."
|
|
|
|
# Change to the root directory of the repository
|
|
cd "$(git rev-parse --show-toplevel)" || exit
|
|
git checkout webv2
|
|
|
|
earthly --ci --push +docker-all --image="ghcr.io/owncast/${DOCKER_IMAGE}" --tag="${TAG}" --version="${VERSION}"
|