Skip to content

Commit e9bc169

Browse files
committed
update: CI
1 parent 1adf0af commit e9bc169

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ jobs:
2424
- name: Install docker
2525
uses: docker/setup-buildx-action@v3
2626

27-
- name: Backend - Build and push
27+
- name: API - Build and push
2828
uses: docker/build-push-action@v6
2929
with:
3030
context: ./backend
3131
push: true
3232
tags: |
33-
${{ secrets.REGISTRY_URL }}/integration/api
33+
${{ secrets.REGISTRY_URL }}/integration/api:${{ github.ref == 'refs/heads/prod' && 'prod' || 'dev' }}
3434
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' }}
3737

38-
- name: Frontend - Build and push
38+
- name: Front- Build and push
3939
uses: docker/build-push-action@v6
4040
with:
4141
context: ./frontend
4242
push: true
4343
tags: |
44-
${{ secrets.REGISTRY_URL }}/integration/front
44+
${{ secrets.REGISTRY_URL }}/integration/front:${{ github.ref == 'refs/heads/prod' && 'prod' || 'dev' }}

0 commit comments

Comments
 (0)