From 3e17fc7468fbe3ca3fa9d01a4d644e27677cacf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Bourgeois?= <89983767+JeromeMBourgeois@users.noreply.github.com> Date: Wed, 14 Feb 2024 17:09:55 +0100 Subject: [PATCH] Update build.yaml --- .github/workflows/build.yaml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3a51482..7ee466e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,30 +22,33 @@ jobs: - name: Upload war uses: actions/upload-artifact@v4 with: - name: war - path: Magma/Magma/target/*.war + name: war-file + path: target/*.war + docker: runs-on: ubuntu-latest needs: build steps: - - - name: Set up QEMU + - name: Download war + uses: actions/download-artifact@v4 + with: + name: war-file + path: target + - name: Set up QEMU uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - with: - buildkitd-flags: --debug - - - name: Login to Docker Hub + - name: Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push + - name: List files in the repository + run: ls -la + - name: Build and push uses: docker/build-push-action@v5 with: push: true - file: dockerfile + file: Dockerfile tags: inseefr/magma-back-office:latest +