diff --git a/.gitea/workflows/teamspeak-build.yml b/.gitea/workflows/teamspeak-build.yml index 8501ae7..60bf5b8 100644 --- a/.gitea/workflows/teamspeak-build.yml +++ b/.gitea/workflows/teamspeak-build.yml @@ -102,61 +102,8 @@ jobs: echo "[INFO] Building $IMAGE" docker buildx build --platform linux/amd64 --pull --no-cache --push -t "$IMAGE" --metadata-file "$METAFILE2" ./basic - update-base-digest-cache: - needs: - - build-alpine - - build-debian - - build-basic - runs-on: vm-docker-build2 - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Update base digest cache - run: | - git config user.name "${{ secrets.GIT_USERNAME }}" - git config user.email "${{ secrets.GIT_EMAIL }}" - - mkdir -p .cache - - [[ "${{ needs.build-alpine.outputs.built }}" == "true" ]] && \ - echo "${{ needs.check-for-changes.outputs.alpine_digest }}" > .cache/alpine-base.digest - - [[ "${{ needs.build-debian.outputs.built }}" == "true" ]] && \ - echo "${{ needs.check-for-changes.outputs.debian_digest }}" > .cache/debian-base.digest - - [[ "${{ needs.build-basic.outputs.built }}" == "true" ]] && \ - echo "${{ needs.check-for-changes.outputs.basic_digest }}" > .cache/basic-base.digest - - if git status --porcelain | grep .; then - # Create a temporary branch - TEMP_BRANCH="tmp-digest-$(date -u +%s)" - git checkout -b "$TEMP_BRANCH" - - git add .cache/*-base.digest - git commit -m "Update base image digests ($(date -u +'%Y-%m-%dT%H:%M:%SZ'))" - - # Push temporary branch - git push origin "$TEMP_BRANCH" - - # Merge temp branch into main safely - git checkout main - git fetch origin main - git merge --no-ff --no-edit "$TEMP_BRANCH" - - # Push main branch - git push origin main - - # Delete temporary branch remotely - git push origin --delete "$TEMP_BRANCH" || true - else - echo "[INFO] No digest updates to commit." - fi - generate-build-info: needs: - - update-base-digest-cache - build-alpine - build-debian - build-basic @@ -294,7 +241,6 @@ jobs: generate-changelogs: needs: - - check-for-changes - generate-build-info if: | needs.check-for-changes.outputs.should_build_alpine == 'true' ||