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