Skip to content

Commit d898e1b

Browse files
ci: [TT-412] adds ci workflow when push to master (#358)
1 parent d6c4c4d commit d898e1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/time-tracker-v1-on-push-workflow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Time Tacker V1 CI - ON PUSH
22

33
on:
44
push:
5-
# update to master
6-
branches: [TT-412-onpush]
5+
branches: [master]
76

87
jobs:
98
time-tracker-ci-v1-on-push:
@@ -56,12 +55,13 @@ jobs:
5655
run: |
5756
pytest tests
5857
59-
- name: Build and push image
58+
- name: Login to docker registry
6059
uses: azure/docker-login@v1
6160
with:
6261
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}
6362
username: ${{ secrets.REGISTRY_USERNAME }}
6463
password: ${{ secrets.REGISTRY_PASSWORD }}
64+
- name: Build and push image
6565
run: |
6666
docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/timetrackerapi:${{ github.sha }}
6767
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/timetrackerapi:${{ github.sha }}

0 commit comments

Comments
 (0)