File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,21 +24,21 @@ jobs:
24
24
- name : Install docker
25
25
uses : docker/setup-buildx-action@v3
26
26
27
- - name : Backend - Build and push
27
+ - name : API - Build and push
28
28
uses : docker/build-push-action@v6
29
29
with :
30
30
context : ./backend
31
31
push : true
32
32
tags : |
33
- ${{ secrets.REGISTRY_URL }}/integration/api
33
+ ${{ secrets.REGISTRY_URL }}/integration/api:${{ github.ref == 'refs/heads/prod' && 'prod' || 'dev' }}
34
34
env :
35
- VITE_API_URL : ${{ github.ref == 'refs/heads/master ' && 'https://integration.utt.fr/api' || 'https://integration.dev.uttnetgroup.fr/api' }}
36
- VITE_SERVICE_URL : ${{ github.ref == 'refs/heads/master ' && 'https://integration.utt.fr' || 'https://integration.dev.uttnetgroup.fr' }}
35
+ VITE_API_URL : ${{ github.ref == 'refs/heads/prod ' && 'https://integration.utt.fr/api' || 'https://integration.dev.uttnetgroup.fr/api' }}
36
+ VITE_SERVICE_URL : ${{ github.ref == 'refs/heads/prod ' && 'https://integration.utt.fr' || 'https://integration.dev.uttnetgroup.fr' }}
37
37
38
- - name : Frontend - Build and push
38
+ - name : Front - Build and push
39
39
uses : docker/build-push-action@v6
40
40
with :
41
41
context : ./frontend
42
42
push : true
43
43
tags : |
44
- ${{ secrets.REGISTRY_URL }}/integration/front
44
+ ${{ secrets.REGISTRY_URL }}/integration/front:${{ github.ref == 'refs/heads/prod' && 'prod' || 'dev' }}
You can’t perform that action at this time.
0 commit comments