ci: déploiement déclenché par tag x.x.x avec push vers registry.maisongrondin.fr
Build & Deploy / deploy (push) Successful in 11s
Build & Deploy / deploy (push) Successful in 11s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,8 +2,8 @@ name: Build & Deploy
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- '[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@@ -13,11 +13,21 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build image
|
- name: Login au registry
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.REGISTRY_PASSWORD }}" | \
|
||||||
|
docker login registry.maisongrondin.fr \
|
||||||
|
-u ${{ secrets.REGISTRY_USERNAME }} \
|
||||||
|
--password-stdin
|
||||||
|
|
||||||
|
- name: Build et push vers le registry
|
||||||
run: |
|
run: |
|
||||||
docker build \
|
docker build \
|
||||||
-t budget-commun:latest \
|
-t registry.maisongrondin.fr/alexandre/budget-commun:${{ gitea.ref_name }} \
|
||||||
|
-t registry.maisongrondin.fr/alexandre/budget-commun:latest \
|
||||||
-f backend/Dockerfile .
|
-f backend/Dockerfile .
|
||||||
|
docker push registry.maisongrondin.fr/alexandre/budget-commun:${{ gitea.ref_name }}
|
||||||
|
docker push registry.maisongrondin.fr/alexandre/budget-commun:latest
|
||||||
|
|
||||||
- name: Redéployer sur TrueNAS
|
- name: Redéployer sur TrueNAS
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user