Ajouter .gitea/workflows/build-push.yaml
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m7s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s

This commit is contained in:
2024-12-27 11:57:54 +01:00
parent 121c4adf30
commit e050e7ab57

View File

@@ -0,0 +1,32 @@
name: Build and Push Docker Image
on:
push:
branches:
- main # Changez cela si votre branche principale a un autre nom
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Gitea Docker Registry
uses: docker/login-action@v1
with:
registry: gargoton.petite-maison-orange.fr
username: ${{ secrets.GARGOTONUSERNAME }} # Assurez-vous d'ajouter ce secret dans Gitea
password: ${{ secrets.GARGOTONTOKEN }} # Assurez-vous d'ajouter ce secret dans Gitea
- name: Build Docker image
run: |
docker build -t gargoton.petite-maison-orange.fr/image/calibre-web:latest .
- name: Push Docker image
run: |
docker push gargoton.petite-maison-orange.fr/image/calibre-web:latest