Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ci: [TT-412] adds ci workflow when push to master
  • Loading branch information
cristiantoaquiza committed Nov 23, 2021
commit 2356bd7829a53f07e2406b0e791c12da9fb129eb
6 changes: 3 additions & 3 deletions .github/workflows/time-tracker-v1-on-push-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Time Tacker V1 CI - ON PUSH

on:
push:
# update to master
branches: [TT-412-onpush]
branches: [master]

jobs:
time-tracker-ci-v1-on-push:
Expand Down Expand Up @@ -56,12 +55,13 @@ jobs:
run: |
pytest tests

- name: Build and push image
- name: Login to docker registry
uses: azure/docker-login@v1
with:
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push image
run: |
docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/timetrackerapi:${{ github.sha }}
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/timetrackerapi:${{ github.sha }}