Skip to content

Commit bc973bb

Browse files
committed
triggers by tag->prod publish release->stage
1 parent 709012c commit bc973bb

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/aws-ui-cd-prod.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: time-tracker-ui-cd-prod
22

33
on:
44
push:
5-
branches:
6-
- 'fix-workflow'
5+
tags:
6+
- 'v*.*.*'
77

88
jobs:
99
cd:
@@ -26,15 +26,15 @@ jobs:
2626
env:
2727
GIT_CRYPT_KEY: ${{ secrets.GIT_CRYPT_KEY_PROD }}
2828

29-
# - name: Build the docker image
30-
# run: |-
31-
# docker build \
32-
# --target production -t timetracker_ui -f Dockerfile_prod \
33-
# .
29+
- name: Build the docker image
30+
run: |-
31+
docker build \
32+
--target production -t timetracker_ui -f Dockerfile_prod \
33+
.
3434
35-
# - name: Publish docker image to prod aws container registry
36-
# run: |
37-
# make login publish_prod image_tag=$RELEASE_VERSION
35+
- name: Publish docker image to prod aws container registry
36+
run: |
37+
make login publish_prod image_tag=$RELEASE_VERSION
3838
3939
- name: SCP files via ssh key
4040
uses: appleboy/scp-action@master

.github/workflows/aws-ui-cd-stage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: time-tracker-ui-cd-stage
22

33
on:
4-
push:
5-
branches:
6-
- 'asdffix-workflow'
4+
release:
5+
types:
6+
- published
77

88
jobs:
99
cd:

0 commit comments

Comments
 (0)