All checks were successful
Auto Tag Develop / tag (push) Successful in 7s
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | | | ## Description de la PR ## Modification du .env ## Check list - [ ] Pas de régression - [ ] TU/TI/TF rédigée - [ ] TU/TI/TF OK - [ ] CHANGELOG modifié Co-authored-by: gitea-actions <gitea-actions@local> Reviewed-on: #11 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
31 lines
802 B
YAML
31 lines
802 B
YAML
name: Build & Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Login to Gitea Registry
|
|
run: |
|
|
echo "${{ secrets.RELEASE_TOKEN }}" | docker login gitea.malio.fr -u "${{ gitea.repository_owner }}" --password-stdin
|
|
|
|
- name: Build Docker image
|
|
run: |
|
|
docker build \
|
|
-f deploy/docker/Dockerfile.prod \
|
|
-t gitea.malio.fr/malio-dev/sirh:${{ github.ref_name }} \
|
|
-t gitea.malio.fr/malio-dev/sirh:latest \
|
|
.
|
|
|
|
- name: Push Docker image
|
|
run: |
|
|
docker push gitea.malio.fr/malio-dev/sirh:${{ github.ref_name }}
|
|
docker push gitea.malio.fr/malio-dev/sirh:latest
|