From 0ccaa37400650dc86284d4422ce7899330aba561 Mon Sep 17 00:00:00 2001 From: Ron Rise Date: Tue, 13 May 2025 21:09:34 -0400 Subject: [PATCH] This is not a commit --- .gitea/workflows/build.yml | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..c454e8a --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,45 @@ +on: + create: + tags: + - '*' + +name: 🏗️✨ 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: 🔑🛠️ Login to Siteworx Registry + uses: docker/login-action@v3 + with: + username: ${{ vars.SITEWORX_USERNAME }} + password: ${{ secrets.SITEWORX_PASSWORD }} + registry: scr.siteworxpro.com + + - 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: scr.siteworxpro.com/traefik-api:${{ gitea.ref_name }} \ No newline at end of file