ebs/.github/workflows/build.yml
Thomas SAMSON c2b3d30640
Staging (#63)
* Add/preprod (#61)

* Enable preprod and cd on pr

* Replace bitnami psql with CNPG

* Update env name

* Fix build

* fix CVE-2026-27135

* Fix main condition

* add cleanup

* purge old vars

* Set vars for build

* Add PG_PWD for CNPG

* Fix CVE for caddy

* Fix caddy build

* Fix environment name

* Fix namespace

* fix domain

* Add nonprod domain

* Fix sharded buffer

* Fix secret

* Revert secret

* grant creat db for fixture

---------

Co-authored-by: ThomasSamson <thomas@samson-pro.fr>

* Update storage bucket variables for production and nonprod

* fix nonprod trusted host

---------

Co-authored-by: ThomasSamson <thomas@samson-pro.fr>
2026-05-05 13:32:03 +02:00

33 lines
900 B
YAML

name: Build
on:
workflow_call:
jobs:
build-push-php:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Build/Push
uses: coopTilleuls/action-docker-build-push@v10
with:
IMAGE_NAME: ${{ vars.IMAGE_NAME_PHP }}
BUILD_CONTEXT: .
BUILD_TARGET: app_php
REGISTRY_JSON_KEY: ${{ secrets.GITHUB_TOKEN }}
IMAGE_REPOSITORY: ${{ vars.IMAGE_REPO }}
build-push-caddy:
# Same Dockerfile as php, with a build target which is after
needs: [build-push-php]
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Build/Push
uses: coopTilleuls/action-docker-build-push@v10
with:
IMAGE_NAME: ${{ vars.IMAGE_NAME_CADDY }}
BUILD_CONTEXT: .
BUILD_TARGET: app_caddy
REGISTRY_JSON_KEY: ${{ secrets.GITHUB_TOKEN }}
IMAGE_REPOSITORY: ${{ vars.IMAGE_REPO }}