DX: build-image.yaml with gitea actions
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
## 2.13.1 - 2026-09-17
|
## 2.13.1 - 2026-09-17
|
||||||
### Fixed
|
### Fixed
|
||||||
* Dockerfile: create cache directory for helm deployment
|
* Dockerfile: create cache directory for helm deployment
|
||||||
|
### DX
|
||||||
|
* Build image with gitea actions
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
name: build-images
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: cth-ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Log in to Docker Registry
|
||||||
|
uses: https://github.com/docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: h3m6q87t.gra7.container-registry.ovh.net
|
||||||
|
username: ${{ vars.OVH_REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.OVH_REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Install Dependencies and Build Assets
|
||||||
|
uses: docker://chill/base-image:8.4-edge
|
||||||
|
env:
|
||||||
|
APP_ENV: prod
|
||||||
|
with:
|
||||||
|
entrypoint: /bin/sh
|
||||||
|
# We install node/yarn inside the PHP container to ensure translations are available
|
||||||
|
args: -c "apk add --no-cache nodejs yarn && composer install --no-scripts --no-interaction && bin/console cache:clear && yarn install && yarn run encore production"
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Build and Push PHP Image
|
||||||
|
uses: https://github.com/docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php:${{ github.ref_name }}
|
||||||
|
|
||||||
|
- name: Build and Push Nginx Image
|
||||||
|
uses: https://github.com/docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: docker/nginx/Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/nginx:${{ github.ref_name }}
|
||||||
Reference in New Issue
Block a user