Ajoute les workflows Gitea Actions et l'image du front
- .gitea/workflows/test-build.yaml : construction des images et jobs de tests (back-end : ruff, migrations, pytest ; front : lint, types, tests, build) sur les pull requests - .gitea/workflows/build-and-release.yaml : publication des images sur Harbor à chaque tag - frontend/Dockerfile, nginx.conf, .dockerignore : image du front (nginx sans privilèges sur le port 8080, relais de /api, /admin et /static vers le back-end du pod) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0617fa8dc4
commit
ec729d604f
5 files changed
+197
No files matched your search
@@ -0,0 +1,36 @@
|
||||
name: Build and release
|
||||
run-name: Build and release ${{ github.ref_name }} (by ${{ gitea.actor }})
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||
- name: Log in to Docker Registry
|
||||
uses: https://gitea.com/docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
|
||||
with:
|
||||
registry: h3m6q87t.gra7.container-registry.ovh.net
|
||||
username: ${{ vars.OVH_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.OVH_REGISTRY_PASSWORD }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://gitea.com/docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
|
||||
- name: Build and push backend
|
||||
uses: https://gitea.com/docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
|
||||
with:
|
||||
context: backend
|
||||
pull: true
|
||||
push: true
|
||||
tags: h3m6q87t.gra7.container-registry.ovh.net/prism/backend:${{ github.ref_name }}
|
||||
|
||||
- name: Build and push frontend
|
||||
uses: https://gitea.com/docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
|
||||
with:
|
||||
context: frontend
|
||||
pull: true
|
||||
push: true
|
||||
tags: h3m6q87t.gra7.container-registry.ovh.net/prism/frontend:${{ github.ref_name }}
|
||||
Reference in new issue
Block a user