From 5c2305d710e5c226d4f813f9f79c4d283fc649dc Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Thu, 26 Jun 2025 19:25:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7(frontend)=20add=20temporary=20CI?= =?UTF-8?q?=20workflow=20for=20DINUM=20frontend=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Create build and push pipeline for custom DINUM image to test white-label deployment process. Will be moved to separate repo later. --- .github/workflows/docker-hub.yml | 39 ++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-hub.yml b/.github/workflows/docker-hub.yml index 1afab6e9..be619a85 100644 --- a/.github/workflows/docker-hub.yml +++ b/.github/workflows/docker-hub.yml @@ -49,7 +49,7 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - build-and-push-frontend: + build-and-push-frontend-generic: runs-on: ubuntu-latest steps: - @@ -83,6 +83,40 @@ jobs: tags: ${{ steps.meta.outputs.tags }} 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: runs-on: ubuntu-latest steps: @@ -113,7 +147,8 @@ jobs: notify-argocd: needs: - - build-and-push-frontend + - build-and-push-frontend-generic + - build-and-push-frontend-dinum - build-and-push-backend - build-and-push-summary runs-on: ubuntu-latest