From 746daaef6dde56182805f1049a3098bef171b53a Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Fri, 10 Apr 2026 08:36:04 +0200 Subject: [PATCH] ci: add Gitea Actions workflow to build + push pitch-deck image Builds and pushes to registry.meghsakha.com/breakpilot/pitch-deck on every push to main that touches pitch-deck/ files. Tags with :latest and :SHORT_SHA. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/build-pitch-deck.yml | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/build-pitch-deck.yml diff --git a/.gitea/workflows/build-pitch-deck.yml b/.gitea/workflows/build-pitch-deck.yml new file mode 100644 index 0000000..36968c6 --- /dev/null +++ b/.gitea/workflows/build-pitch-deck.yml @@ -0,0 +1,37 @@ +# Build + push pitch-deck Docker image to registry.meghsakha.com +# on every push to main that touches pitch-deck/ files. + +name: Build pitch-deck + +on: + push: + branches: [main] + paths: + - 'pitch-deck/**' + +jobs: + build-and-push: + runs-on: docker + container: + image: docker:27-cli + steps: + - name: Checkout + run: | + apk add --no-cache git + git clone --depth 1 --branch ${GITHUB_REF_NAME} ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git . + + - name: Build image + run: | + cd pitch-deck + SHORT_SHA=$(git rev-parse --short HEAD) + docker build \ + -t registry.meghsakha.com/breakpilot/pitch-deck:latest \ + -t registry.meghsakha.com/breakpilot/pitch-deck:${SHORT_SHA} \ + . + + - name: Push to registry + run: | + SHORT_SHA=$(git rev-parse --short HEAD) + docker push registry.meghsakha.com/breakpilot/pitch-deck:latest + docker push registry.meghsakha.com/breakpilot/pitch-deck:${SHORT_SHA} + echo "Pushed registry.meghsakha.com/breakpilot/pitch-deck:latest + :${SHORT_SHA}"