59 lines
1.6 KiB
YAML
59 lines
1.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: Build and push
|
|
uses: docker/build-push-action@v5
|
|
env:
|
|
APP_FRANKENPHP_TAG: php8.4
|
|
with:
|
|
context: .
|
|
push: true
|
|
file: docker/Dockerfile.base.worker
|
|
platforms: linux/amd64
|
|
build-args: |
|
|
APP_FRANKENPHP_TAG=${{ env.APP_FRANKENPHP_TAG }}
|
|
tags: |
|
|
code.caldwell.digital/home/torsearch-base:${APP_FRANKENPHP_TAG}
|
|
code.caldwell.digital/home/torsearch-base: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: Build and push
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
push: true
|
|
file: docker/Dockerfile.base.worker
|
|
platforms: linux/amd64
|
|
build-args: |
|
|
ALPINE_VERSION=3.22
|
|
tags: |
|
|
code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|