👷(frontend) add temporary CI workflow for DINUM frontend image

Create build and push pipeline for custom DINUM image to test white-label
deployment process. Will be moved to separate repo later.
This commit is contained in:
lebaudantoine
2025-06-26 19:25:05 +02:00
committed by aleb_the_flash
parent fb6b6f2b03
commit 5c2305d710

View File

@@ -49,7 +49,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-and-push-frontend: build-and-push-frontend-generic:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- -
@@ -83,6 +83,40 @@ jobs:
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-and-push-frontend-dinum:
runs-on: ubuntu-latest
steps:
-
name: Checkout repository
uses: actions/checkout@v4
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: lasuite/meet-frontend-dinum
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
run: echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_HUB_USER }}" --password-stdin
-
name: Run trivy scan
uses: numerique-gouv/action-trivy-cache@main
with:
docker-build-args: '-f docker/dinum-frontend/Dockerfile --target frontend-production'
docker-image-name: 'docker.io/lasuite/meet-frontend-dinum:${{ github.sha }}'
-
name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/dinum-frontend/Dockerfile
target: frontend-production
build-args: DOCKER_USER=${{ env.DOCKER_USER }}:-1000
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-and-push-summary: build-and-push-summary:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -113,7 +147,8 @@ jobs:
notify-argocd: notify-argocd:
needs: needs:
- build-and-push-frontend - build-and-push-frontend-generic
- build-and-push-frontend-dinum
- build-and-push-backend - build-and-push-backend
- build-and-push-summary - build-and-push-summary
runs-on: ubuntu-latest runs-on: ubuntu-latest