feat(actions): Added dev build

This commit is contained in:
l-nmch
2025-10-26 01:00:25 +02:00
parent 4e299a68ed
commit 6023129ebe
2 changed files with 39 additions and 0 deletions

39
.gitea/workflows/main.yml Normal file
View File

@@ -0,0 +1,39 @@
name: Docker Build and Push
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
github-server-url: 'https://git.haum.lnmch.fr'
- name: Log in to Docker Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ secrets.REGISTRY_URL }}/kops:${{ github.sha }}
${{ secrets.REGISTRY_URL }}/kops:latest
- name: Logout from Docker Registry
run: docker logout ${{ secrets.REGISTRY_URL }}