Files
microservicios_python/.gitea/workflows/build.yml
dfcarvajal e0a840f649
Some checks failed
build / build (push) Failing after 1s
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
TEST: actions
2025-12-15 19:13:11 +01:00

30 lines
811 B
YAML

name: build
on:
push:
branches:
- main
jobs:
build:
runs-on: [k8s, kaniko]
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: https://gitea.com/actions/checkout@v4
- 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
uses: docker://gcr.io/kaniko-project/executor:latest
with:
args: >
--context=.
--dockerfile=./Dockerfile
--destination=nexus.rancherk3.duckdns.org/tfm/microserviciospython:latest