65 lines
2.6 KiB
YAML
65 lines
2.6 KiB
YAML
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
|