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

34 lines
861 B
YAML

name: build
on:
push:
branches:
- main
jobs:
build:
runs-on: [k8s, kaniko]
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- 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