Files
Inventory/.gitea/workflows/build-docker.yml
Matthieu 9c8aecec93
Some checks failed
Build & Push Docker Image / build (push) Failing after 8s
feat : add Docker production deployment
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 12:08:32 +02:00

33 lines
862 B
YAML

name: Build & Push Docker Image
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- 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-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