chore: add ci
docker-publish / publish (push) Has been cancelled

This commit is contained in:
Nuxgrid
2026-07-27 15:55:30 +02:00
parent f4f96ff2f0
commit 8397a4470f
+47
View File
@@ -0,0 +1,47 @@
name: docker-publish
# Build + push des images Docker (web, api) vers Docker Hub uniquement.
# Pas de déploiement ici.
on:
push:
branches: [main]
paths:
- "web/**"
- "control-plane/api/**"
- ".gitea/workflows/docker-publish.yml"
workflow_dispatch: {}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & push web
uses: docker/build-push-action@v6
with:
context: ./web
file: ./web/Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/omnex-web:latest
- name: Build & push api
uses: docker/build-push-action@v6
with:
context: ./control-plane/api
file: ./control-plane/api/Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/omnex-api:latest