Merge pull request #53 from benyaming/pydantic-v2 #51
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: Zmanim Api CI | |
on: | |
push: | |
branches: | |
- master | |
# pull_request: | |
# branches: | |
# - master | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Docker login | |
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build | |
run: docker build -t zmanim-api -f Dockerfile . | |
- name: Tags | |
run: | | |
docker tag zmanim-api ${{ secrets.DOCKER_USER }}/zmanim-api:${{ github.sha }} | |
docker tag zmanim-api ${{ secrets.DOCKER_USER }}/zmanim-api:latest | |
- name: Push | |
run: | | |
docker push ${{ secrets.DOCKER_USER }}/zmanim-api:${{ github.sha }} | |
docker push ${{ secrets.DOCKER_USER }}/zmanim-api:latest |