task(ci): update base image
This commit is contained in:
@@ -17,32 +17,20 @@ jobs:
|
|||||||
username: "${{ vars.REGISTRY_USER }}"
|
username: "${{ vars.REGISTRY_USER }}"
|
||||||
password: "${{ vars.REGISTRY_PASS }}"
|
password: "${{ vars.REGISTRY_PASS }}"
|
||||||
|
|
||||||
- name: Create torsearch-app docker image
|
- name: Build and push
|
||||||
run: |
|
uses: docker/build-push-action@v5
|
||||||
export APP_FRANKENPHP_TAG=php8.4
|
env:
|
||||||
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}" .
|
APP_FRANKENPHP_TAG: php8.4
|
||||||
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:
|
with:
|
||||||
registry: "${{ vars.REGISTRY_URL }}"
|
context: .
|
||||||
username: "${{ vars.REGISTRY_USER }}"
|
push: true
|
||||||
password: "${{ vars.REGISTRY_PASS }}"
|
file: docker/Dockerfile.base.worker
|
||||||
|
platforms: linux/amd64
|
||||||
- name: Create torsearch-worker docker image
|
build-args: |
|
||||||
run: |
|
APP_FRANKENPHP_TAG=${{ env.APP_FRANKENPHP_TAG }}
|
||||||
export WORKER_FRANKENPHP_TAG=php8.4-alpine
|
tags: |
|
||||||
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}" .
|
code.caldwell.digital/home/torsearch-base:${APP_FRANKENPHP_TAG}
|
||||||
docker push --platform=linux/amd64 code.caldwell.digital/home/torsearch-base-worker:${WORKER_FRANKENPHP_TAG}
|
code.caldwell.digital/home/torsearch-base:latest
|
||||||
docker push --platform=linux/amd64 code.caldwell.digital/home/torsearch-base-worker:latest
|
|
||||||
|
|
||||||
build-base-worker-supervisord:
|
build-base-worker-supervisord:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -61,14 +49,10 @@ jobs:
|
|||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
build-args: |
|
|
||||||
ALPINE_VERSION=3.22
|
|
||||||
push: true
|
push: true
|
||||||
file: docker/Dockerfile.base.worker
|
file: docker/Dockerfile.base.worker
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.22
|
||||||
tags: |
|
tags: |
|
||||||
code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
||||||
|
|
||||||
# - name: Create torsearch-scheduler docker image
|
|
||||||
# run: |
|
|
||||||
# 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}" .
|
|
||||||
|
|||||||
Reference in New Issue
Block a user