24 lines
543 B
YAML
24 lines
543 B
YAML
name: build-and-push
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Login to Gitea registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: gitea.interno.com
|
|
username: tu_usuario
|
|
password: ${{ secrets.GITEA_TOKEN }}
|
|
|
|
- name: Build and push image
|
|
run: |
|
|
docker build -t gitea.interno.com/tu_usuario/mi-mcp-server:latest .
|
|
docker push gitea.interno.com/tu_usuario/mi-mcp-server:latest
|