TEST: actions
This commit is contained in:
@@ -9,23 +9,15 @@ jobs:
|
|||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: [k8s, kaniko]
|
runs-on: [k8s, kaniko]
|
||||||
|
|
||||||
|
env:
|
||||||
|
DOCKER_HOST: tcp://localhost:2375
|
||||||
|
DOCKER_TLS_VERIFY: 0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Login to Docker Registry
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
registry: docker.io # Cambia si usas otro registro
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
run: |
|
||||||
with:
|
docker build -t nexus.rancherk3.duckdns.org/tfm/microservicespython:latest .
|
||||||
context: .
|
docker push nexus.rancherk3.duckdns.org/tfm/microservicespython:latest
|
||||||
push: true
|
|
||||||
tags: docker.io/tu_usuario/tu_imagen:latest
|
|
||||||
@@ -4,7 +4,7 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: k8s
|
runs-on: [k8s, kaniko]
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
|
|||||||
Reference in New Issue
Block a user