File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change 9
9
10
10
name : Prod Build, Test and Publish
11
11
12
- on :
13
- release :
14
- types : [published]
12
+ # on:
13
+ # release:
14
+ # types: [published]
15
15
16
+ on :
17
+ push :
18
+ branches : [main]
16
19
17
20
# Set global environment variables
18
21
env :
60
63
${{ env.REPOSITORY_NAMESPACE }}/${{ env.REPOSITORY_NAME }}:${{ steps.fetch-latest-release.outputs.tag_name }}
61
64
${{ env.REPOSITORY_NAMESPACE }}/${{ env.REPOSITORY_NAME }}:latest
62
65
63
- # Check if frontend files have changed to optimize build process
64
- - name : Check for frontend changes
65
- uses : dorny/paths-filter@v2
66
- id : frontend-changes
67
- with :
68
- filters : |
69
- frontend:
70
- - 'frontend/**'
71
-
72
66
# Build and push lite version of backend image
73
67
- name : Build and push lite Docker image
74
68
uses : docker/build-push-action@v4
82
76
${{ env.REPOSITORY_NAMESPACE }}/${{ env.REPOSITORY_NAME }}:${{ steps.fetch-latest-release.outputs.tag_name }}-lite
83
77
${{ env.REPOSITORY_NAMESPACE }}/${{ env.REPOSITORY_NAME }}:latest-lite
84
78
79
+ # Check if frontend files have changed to optimize build process
80
+ - name : Check for frontend changes
81
+ uses : dorny/paths-filter@v2
82
+ id : frontend-changes
83
+ with :
84
+ filters : |
85
+ frontend:
86
+ - 'frontend/**'
87
+
85
88
# Build frontend Docker image only if frontend files changed
86
89
- name : Build and push frontend Docker image
87
- uses : docker/build-push-action@v4
90
+ uses : docker/build-push-action@v5.3.0
88
91
if : steps.frontend-changes.outputs.frontend == 'true'
89
92
with :
90
93
context : ./frontend
You can’t perform that action at this time.
0 commit comments