Actualiser .gitea/workflows/deploy.yaml
Some checks failed
Build and Push App / build (push) Failing after 3s
Some checks failed
Build and Push App / build (push) Failing after 3s
This commit is contained in:
@@ -1,29 +1,25 @@
|
|||||||
name: Deploy Afropreunariat
|
name: Build and Push App
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [ "main" ] # Déclenche le build au push sur la branche main
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Login to Gitea Registry
|
||||||
uses: docker/setup-buildx-action@v2
|
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: Login to Registry
|
- name: Build and Push Docker Image
|
||||||
uses: docker/login-action@v2
|
run: |
|
||||||
with:
|
# Construction de l'image
|
||||||
registry: git.home.arrondeau.fr
|
# Le Dockerfile doit contenir l'installation d'openssl pour Prisma
|
||||||
username: ${{ github.actor }}
|
docker build -t git.home.arrondeau.fr/${{ gitea.repository }}:latest .
|
||||||
password: ${{ secrets.TOKEN }}
|
|
||||||
|
|
||||||
- name: Build and Push
|
# Envoi vers la registry Gitea
|
||||||
uses: docker/build-push-action@v4
|
docker push git.home.arrondeau.fr/${{ gitea.repository }}:latest
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
tags: git.home.arrondeau.fr/streaper2/afropreunariat:latest
|
|
||||||
Reference in New Issue
Block a user