From f8f63e418c63aa25776da94e15e59ee0f120412b Mon Sep 17 00:00:00 2001 From: Ron Rise Date: Wed, 14 May 2025 13:30:55 -0400 Subject: [PATCH] I really should've committed this when I finished it... --- .gitea/workflows/tests.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitea/workflows/tests.yml diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml new file mode 100644 index 0000000..36eb8bd --- /dev/null +++ b/.gitea/workflows/tests.yml @@ -0,0 +1,38 @@ +on: + push: + branches: + - "*" + +name: 🏗️✨ Test Build Workflow + +jobs: + Build: + name: 🖥️ 🔨 Build + runs-on: ubuntu-latest + steps: + - name: 🛡️ 🔒 Add Siteworx CA Certificates + run: | + apt update && apt install -yq ca-certificates curl + curl -Ls https://siteworxpro.com/hosted/Siteworx+Root+CA.pem -o /usr/local/share/ca-certificates/sw.crt + update-ca-certificates + + - name: 📖 🔍 Checkout Repository Code + uses: actions/checkout@v2 + with: + fetch-depth: 1 + + - name: 🔑 🔐 Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: 🏗️ 🔧 Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: 🐳 🔨 Build Backend Container + uses: docker/build-push-action@v6 + with: + context: . + dockerfile: Dockerfile + tags: siteworxpro/template:${{ gitea.ref_name }} \ No newline at end of file