From fb3e7b20ff73ac063e29a1dda39ae396cfb3310d Mon Sep 17 00:00:00 2001 From: Brock H Caldwell Date: Tue, 10 Mar 2026 23:09:20 -0500 Subject: [PATCH] task(ci): build base images --- .gitea/workflows/build_base_images.yml | 64 ++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .gitea/workflows/build_base_images.yml diff --git a/.gitea/workflows/build_base_images.yml b/.gitea/workflows/build_base_images.yml new file mode 100644 index 0000000..c1b7751 --- /dev/null +++ b/.gitea/workflows/build_base_images.yml @@ -0,0 +1,64 @@ +name: CI + +on: [push] + +jobs: + build-base-app: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v5 + + - name: Login to registry + uses: docker/login-action@v2 + with: + registry: "${{ vars.REGISTRY_URL }}" + username: "${{ vars.REGISTRY_USER }}" + password: "${{ vars.REGISTRY_PASS }}" + + - name: Create torsearch-app docker image + run: | + export APP_FRANKENPHP_TAG=php8.4 + docker buildx build --platform=linux/amd64 -f docker/Dockerfile.base.app -t code.caldwell.digital/home/torsearch-base:${APP_FRANKENPHP_TAG} -t code.caldwell.digital/home/torsearch-base:latest --build-arg "FRANKENPHP_TAG=${APP_FRANKENPHP_TAG}" . + docker push --platform=linux/amd64 code.caldwell.digital/home/torsearch-base:${APP_FRANKENPHP_TAG} + docker push --platform=linux/amd64 code.caldwell.digital/home/torsearch-base:latest + + build-base-worker: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v5 + + - name: Login to registry + uses: docker/login-action@v2 + with: + registry: "${{ vars.REGISTRY_URL }}" + username: "${{ vars.REGISTRY_USER }}" + password: "${{ vars.REGISTRY_PASS }}" + + - name: Create torsearch-worker docker image + run: | + export WORKER_FRANKENPHP_TAG=php8.4-alpine + docker buildx build --platform=linux/amd64 -f docker/Dockerfile.base.worker -t code.caldwell.digital/home/torsearch-base-worker:${WORKER_FRANKENPHP_TAG} -t code.caldwell.digital/home/torsearch-base-worker:latest --build-arg "FRANKENPHP_TAG=${WORKER_FRANKENPHP_TAG}" . + docker push --platform=linux/amd64 code.caldwell.digital/home/torsearch-base-worker:${WORKER_FRANKENPHP_TAG} + docker push --platform=linux/amd64 code.caldwell.digital/home/torsearch-base-worker:latest + + build-base-worker-supervisord: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v5 + + - name: Login to registry + uses: docker/login-action@v2 + with: + registry: "${{ vars.REGISTRY_URL }}" + username: "${{ vars.REGISTRY_USER }}" + password: "${{ vars.REGISTRY_PASS }}" + + - name: Create torsearch-scheduler docker image + run: | + export ALPINE_VERSION=3.22 + docker buildx build --platform=linux/amd64 -f docker/Dockerfile.base.worker -t code.caldwell.digital/home/torsearch-base-worker-supervisord:latest --build-arg "ALPINE_VERSION=${ALPINE_VERSION}" . + docker push --platform=linux/amd64 code.caldwell.digital/home/torsearch-base-worker-supervisord:latest