Actualiser .gitea/workflows/build-push.yaml
This commit is contained in:
@@ -112,36 +112,3 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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@v4
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Log in to Gitea Docker Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: gargoton.petite-maison-orange.fr
|
|
||||||
username: eric
|
|
||||||
password: ${{ secrets.GARGOTONTOKEN }} # Assurez-vous d'ajouter ce secret dans Gitea
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
|
||||||
run: |
|
|
||||||
docker build --tag 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
|
|
||||||
Reference in New Issue
Block a user