diff --git a/.build.yaml b/.build.yaml deleted file mode 100644 index deb2493..0000000 --- a/.build.yaml +++ /dev/null @@ -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