Primera prueba de código de microservicios
Some checks failed
build / build (push) Failing after 0s
test / echo (push) Has been cancelled

This commit is contained in:
2025-12-12 12:59:20 +01:00
commit 85d023acec
7 changed files with 251 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
name: build
on:
push:
branches:
- main
jobs:
build:
runs-on: [k8s, kaniko]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login a Nexus
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
echo "$NEXUS_PASSWORD" | docker login nexus.rancherk3.duckdns.org -u "$NEXUS_USER" --password-stdin
- name: Build & Push image with Kaniko
image: gcr.io/kaniko-project/executor:latest
command:
- /kaniko/executor
args:
- --context=.
- --dockerfile=./Dockerfile
- --destination=nexus.rancherk3.duckdns.org/tfm/microserviciospython:latest