Merge branch 'main' of gargoton:image/calibre-web

merge with local gitea version
This commit is contained in:
2024-12-27 14:49:46 +01:00
4 changed files with 66 additions and 2 deletions

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@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

View File

@@ -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 }}."

View File

@@ -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

View File

@@ -1,5 +1,3 @@
# syntax=docker/dockerfile:1
FROM debian:trixie-slim AS build
# set version label