diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml new file mode 100644 index 0000000..7d1f10e --- /dev/null +++ b/.gitea/workflows/build-push.yaml @@ -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@v2 + + - name: Log in to Gitea Docker Registry + uses: docker/login-action@v3 + with: + registry: gargoton.petite-maison-orange.fr + username: eric # 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 \ No newline at end of file diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml new file mode 100644 index 0000000..394c807 --- /dev/null +++ b/.gitea/workflows/demo.yaml @@ -0,0 +1,19 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [push] + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file diff --git a/.woodpecker/build-image.yaml b/.woodpecker/build-image.yaml new file mode 100644 index 0000000..891ae4e --- /dev/null +++ b/.woodpecker/build-image.yaml @@ -0,0 +1,15 @@ +name: default + +steps: +- name: docker + image: woodpeckerci/plugin-docker-buildx + settings: + username: kevinbacon + password: + from_secret: eric_token + registry: gargoton.petite-maison-orange.fr + repo: gargoton.petite-maison-orange.fr/image/calibre-web + tags: + - latest + - main + diff --git a/Dockerfile b/Dockerfile index 8e1b6eb..6714865 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,3 @@ -# syntax=docker/dockerfile:1 - FROM debian:trixie-slim AS build # set version label