first commit
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled

This commit is contained in:
el 2025-04-14 17:47:08 +02:00
parent 3e537bc05d
commit 154646a124
19 changed files with 2989 additions and 147 deletions

View file

@ -0,0 +1,32 @@
name: Build and Push Docker Image
on:
push:
branches:
- main # Ou la branche sur laquelle vous pushez habituellement
jobs:
build:
runs-on: alpine # Utilisation de votre runner
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Docker image
run: |
docker build -t git.wilmoredynamics.com/ab/ab01:${GITHUB_SHA::8} .
# Tag the image with 'latest'
docker tag git.wilmoredynamics.com/ab/ab01:${GITHUB_SHA::8} git.wilmoredynamics.com/ab/ab01:latest
- name: Log in to Forgejo Container Registry
uses: docker/login-action@v2
with:
registry: git.wilmoredynamics.com
username: AB # Votre nom d'utilisateur ou organisation Forgejo
password: ${{ secrets.FORGEJO_TOKEN }} # Votre jeton d'accès personnel Forgejo
- name: Push Docker image to Forgejo Container Registry
run: |
docker push git.wilmoredynamics.com/ab/ab01:${GITHUB_SHA::8}
docker push git.wilmoredynamics.com/ab/ab01:latest