feat : add Docker prodcution deployment
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled

This commit is contained in:
Matthieu
2026-04-01 11:00:10 +02:00
parent e480e2821b
commit 21e050ce29
13 changed files with 767 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
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.REGISTRY_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/lesstime:${{ gitea.ref_name }} \
-t gitea.malio.fr/malio/lesstime:latest \
.
- name: Push Docker image
run: |
docker push gitea.malio.fr/malio/lesstime:${{ gitea.ref_name }}
docker push gitea.malio.fr/malio/lesstime:latest