Actualiser .gitea/workflows/deploy.yaml
Some checks failed
Build and Push App / build (push) Failing after 10s
Some checks failed
Build and Push App / build (push) Failing after 10s
This commit is contained in:
@@ -1,25 +1,23 @@
|
|||||||
name: Build and Push App
|
name: Build and Push App
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ] # Déclenche le build au push sur la branche main
|
branches: [ "main" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# FORCE l'image ici pour être sûr d'avoir l'outil Docker
|
||||||
|
container:
|
||||||
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Login to Gitea Registry
|
- name: Login to Gitea Registry
|
||||||
run: |
|
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
|
echo "${{ secrets.GITEA_TOKEN }}" | docker login git.home.arrondeau.fr -u ${{ gitea.actor }} --password-stdin
|
||||||
|
|
||||||
- name: Build and Push Docker Image
|
- name: Build and Push Docker Image
|
||||||
run: |
|
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 .
|
docker build -t git.home.arrondeau.fr/${{ gitea.repository }}:latest .
|
||||||
|
|
||||||
# Envoi vers la registry Gitea
|
|
||||||
docker push git.home.arrondeau.fr/${{ gitea.repository }}:latest
|
docker push git.home.arrondeau.fr/${{ gitea.repository }}:latest
|
||||||
Reference in New Issue
Block a user