Added docker image building

This commit is contained in:
Frédérick Pruneau 2026-02-05 15:19:41 -05:00
parent d0b3bd80c2
commit 003be92aba
Signed by: fred
SSH Key Fingerprint: SHA256:NE8ZTR2qtoXf35Rq2m2y6PQA0sIUFPVTEIsGwG9FsXk

View File

@ -88,26 +88,13 @@ jobs:
- name: Run build - name: Run build
run: npm run build run: npm run build
# Partage du build via artifact
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: spa
path: dist/spa/
retention-days: 1
#Partage du dossier src
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: src
path: src/
retention-days: 1
- name: Notify Google Chat - name: Notify Google Chat
if: ${{ failure() }} # Use always to ensure that the notification is also send on failure of former steps if: ${{ failure() }} # Use always to ensure that the notification is also send on failure of former steps
uses: SimonScholz/google-chat-action@3b3519e5102dba8aa5046fd711c4b553586409bb # v1.1.0 uses: SimonScholz/google-chat-action@3b3519e5102dba8aa5046fd711c4b553586409bb # v1.1.0
with: with:
webhookUrl: '${{ secrets.GOOGLE_CHAT_WEBHOOK }}' webhookUrl: '${{ secrets.GOOGLE_CHAT_WEBHOOK }}'
jobStatus: ${{ job.status }} jobStatus: ${{ job.status }}
title: Test failed title: Build failed
deploy: deploy:
needs: [lint, test, build] needs: [lint, test, build]
@ -117,10 +104,4 @@ jobs:
contents: read contents: read
id-token: write id-token: write
steps: steps:
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: spa
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: src
- run: docker build -t targo_frontend . - run: docker build -t targo_frontend .