remove sr.ht build config
Some checks failed
Build and Deploy ytdlp-site / build-deploy (push) Has been cancelled

This commit is contained in:
2025-08-29 09:42:09 -06:00
parent 5ef8692a3a
commit 54c6740dfe

View File

@@ -1,33 +0,0 @@
image: debian/bookworm
secrets:
- a19cbc4c-b6a1-414e-bf1c-1e06abc684eb
tasks:
- print-env: |
echo "$JOB_ID"
echo "$JOB_URL"
echo "$BUILD_SUBMITTER"
echo "$BUILD_REASON"
echo "$GIT_REF"
- setup-env: |
sudo timedatectl set-timezone America/Denver
echo "SLUG=ghcr.io/cwpearson/ytdlp-site" >> ~/.buildenv
echo "DATE=$(date +"%Y%m%d_%H%M")" >> ~/.buildenv
- prerequisites: |
bash ytdlp-site/.ci/debian_setup_docker.sh
- build: |
cd ytdlp-site
docker build . --file Dockerfile --build-arg GIT_SHA=$(git rev-parse HEAD) --tag "$SLUG:$DATE" --tag "$SLUG:latest"
- deploy: |
if [ "$GIT_REF" != "refs/heads/master" ]; then exit 0; fi
set +x
cat ~/.ghcr_token | docker login ghcr.io -u cwpearson --password-stdin
set -x
docker push "$SLUG:latest"
docker push "$SLUG:$DATE"
triggers:
- action: email
condition: failure
to: Carl Pearson <srht@carlpearson.net>