Files
Inventory/.gitea/workflows/build-docker.yml
r-dev 18cb9d5d80
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
refactor(infra) : reorganize docker config into infra/dev and infra/prod
Align project structure with Lesstime: move docker/ to infra/dev/ and
deploy/ to infra/prod/. Update all references in docker-compose,
makefile, CI workflow, Dockerfile, .gitignore and .dockerignore.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 08:11:35 +02:00

31 lines
813 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.REGISTRY_TOKEN }}" | docker login gitea.malio.fr -u "${{ gitea.repository_owner }}" --password-stdin
- name: Build Docker image
run: |
docker build \
-f infra/prod/Dockerfile \
-t gitea.malio.fr/malio-dev/inventory:${{ gitea.ref_name }} \
-t gitea.malio.fr/malio-dev/inventory:latest \
.
- name: Push Docker image
run: |
docker push gitea.malio.fr/malio-dev/inventory:${{ gitea.ref_name }}
docker push gitea.malio.fr/malio-dev/inventory:latest