From 38e29881cf7c9885935d8fba90f1c6acf7f84e2f Mon Sep 17 00:00:00 2001 From: Seymen Date: Thu, 14 Nov 2024 22:39:59 +0100 Subject: [PATCH] Create frontendflow.yml --- .github/workflows/frontendflow.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/frontendflow.yml diff --git a/.github/workflows/frontendflow.yml b/.github/workflows/frontendflow.yml new file mode 100644 index 0000000..4d085e8 --- /dev/null +++ b/.github/workflows/frontendflow.yml @@ -0,0 +1,26 @@ +name: Pricely Frontend + +on: + push: + branches: master + paths: + - PricelyWeb/** + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Docker Hub log in + run: echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login --username ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin + + - name: Build the Docker image + run: | + docker build -t pricelyweb . -f PricelyWeb/PricelyWeb/Dockerfile --tag ${{ secrets.DOCKER_HUB_USERNAME }}/pricelyweb + + + - name: Push the Docker image + run: | + docker push ${{ secrets.DOCKER_HUB_USERNAME }}/pricelyweb