This commit is contained in:
28
.gitea/workflows/ci.yml
Normal file
28
.gitea/workflows/ci.yml
Normal 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
|
||||
Reference in New Issue
Block a user