Primera prueba de código de microservicios
This commit is contained in:
30
.gitea/workflows/build.yml
Normal file
30
.gitea/workflows/build.yml
Normal 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
|
||||
8
.gitea/workflows/test.yml
Normal file
8
.gitea/workflows/test.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
name: test
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
echo:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- run: echo "Gitea Actions funcionando!"
|
||||
Reference in New Issue
Block a user