Merge branch 'master' of https://github.com/SeymenNW/PricelyWASM #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pricely Backend | |
on: | |
push: | |
branches: master | |
paths: | |
- PricelyAPI/** | |
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 pricelyapi . -f PricelyAPI/Dockerfile --tag ${{ secrets.DOCKER_HUB_USERNAME }}/pricelyapi | |
- name: Push the Docker image | |
run: | | |
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/pricelyapi |