From 666ceb732515946a2e501fd516f245020b821740 Mon Sep 17 00:00:00 2001 From: Elijah Date: Sat, 27 Jun 2026 10:56:48 -0700 Subject: [PATCH] Initial commit with CI/CD blueprint --- .forgejo/workflows/build.yml | 25 +++++++++++++++++++++++++ .gitignore | 13 +++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .forgejo/workflows/build.yml create mode 100644 .gitignore diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..4ed4ca5 --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,25 @@ +name: Automated Container Build + +on: + push: + branches: + - main + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Log into Local Registry + run: | + echo "${{ secrets.FORGEJO_PAT }}" | docker login git.elijahkuntz.com -u "${{ gitea.actor }}" --password-stdin + + - name: Build and Push Image + run: | + # Force the entire image path string to lowercase dynamically + IMAGE_PATH=$(echo "git.elijahkuntz.com/${{ gitea.actor }}/${{ github.event.repository.name }}:latest" | tr '[:upper:]' '[:lower:]') + + docker build -t "$IMAGE_PATH" . + docker push "$IMAGE_PATH" \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f185868 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +# IDE & Editor files +.vscode/ +.cursor/ +.idea/ +*.swp +*.xml + +# Build outputs (if your Node app eventually compiles or bundles code) +dist/ +build/ +out/ + +# Local application run data