Files
afrov2/.gitea/workflows/deploy.yaml
streaper2 9917e19409
Some checks failed
Build and Push App / build (push) Failing after 3s
Actualiser .gitea/workflows/deploy.yaml
2026-04-15 19:58:06 +00:00

25 lines
872 B
YAML

name: Build and Push App
on:
push:
branches: [ "main" ] # Déclenche le build au push sur la branche main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Gitea Registry
run: |
# Utilise le secret GITEA_TOKEN que tu as ajouté dans les paramètres du dépôt
echo "${{ secrets.GITEA_TOKEN }}" | docker login git.home.arrondeau.fr -u ${{ gitea.actor }} --password-stdin
- name: Build and Push Docker Image
run: |
# Construction de l'image
# Le Dockerfile doit contenir l'installation d'openssl pour Prisma
docker build -t git.home.arrondeau.fr/${{ gitea.repository }}:latest .
# Envoi vers la registry Gitea
docker push git.home.arrondeau.fr/${{ gitea.repository }}:latest