From 3423a751a6b5450163880497c3d1214e2877e724 Mon Sep 17 00:00:00 2001 From: delyc Date: Fri, 16 Aug 2024 12:06:52 +0200 Subject: [PATCH] building workflow for pushing image to dockerhub --- .github/workflows/mpm-fe-dockerfile.yaml | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/mpm-fe-dockerfile.yaml diff --git a/.github/workflows/mpm-fe-dockerfile.yaml b/.github/workflows/mpm-fe-dockerfile.yaml new file mode 100644 index 000000000..f494e12e9 --- /dev/null +++ b/.github/workflows/mpm-fe-dockerfile.yaml @@ -0,0 +1,31 @@ +name: Build and Push MPM Frontend Image + +on: + push: + branches: + - ft/deployment + +jobs: + build-and-push: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: ./Website/ui/Dockerfile + platforms: linux/amd64 + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/mpm-frontend:latest