Skip to content

Commit 214e563

Browse files
heikergilsantii90ec
authored andcommitted
fix: TT-513 fix make publish
1 parent f8c817c commit 214e563

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/time-tracker-ui-ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ name: time-tracker-ui-ci
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches:
6+
- master
7+
68
pull_request:
9+
branches:
10+
- master
711

812
jobs:
913
ci:

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ testdev: ## Run all tests on docker container timetracker_ui at the Dev
4949
docker exec timetracker_ui bash -c "npm run ci-test"
5050

5151
.PHONY: publish
52-
publish: ## Publish the container image timetracker_ui.
53-
docker tag timetracker_ui $(acr).azurecr.io/timetracker_ui:latest
54-
docker push $(acr).azurecr.io/timetracker_ui:latest
52+
publish: require-acr-arg require-image_tag-arg ## Upload a docker image to an azure container registry acr=<name_of_the_azure_container_registry> image_tag=<tag_for_the_image>
53+
docker tag timetracker_api $(acr).azurecr.io/timetracker_api:$(image_tag)
54+
docker push $(acr).azurecr.io/timetracker_api:$(image_tag)
5555

5656
.PHONY: build_prod
5757
build_prod: ## Create docker image with dependencies needed for production.

0 commit comments

Comments
 (0)