Init Project
All checks were successful
Go CI Pipeline / build_and_test (push) Successful in 11m57s

This commit is contained in:
Enkly
2025-12-09 17:47:21 +01:00
parent d1ebb9fb9b
commit 7a6f64e581
62 changed files with 5238 additions and 0 deletions

28
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,28 @@
name: Go CI Pipeline
on: [push, pull_request]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Install dependencies
run: go mod download
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
- name: Login to private registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push container image
run: |
docker build -t toutaloue:1.0 .
docker tag toutaloue:1.0 ${{ secrets.REGISTRY_URL }}/jkinyongo/toutaloue:1.0
docker push ${{ secrets.REGISTRY_URL }}/jkinyongo/toutaloue:1.0