26 lines
562 B
YAML
26 lines
562 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: [k8s, kaniko]
|
|
|
|
env:
|
|
DOCKER_HOST: tcp://localhost:2375
|
|
DOCKER_TLS_VERIFY: 0
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Build and push Docker image
|
|
env:
|
|
DOCKER_TLS_VERIFY: ""
|
|
DOCKER_CERT_PATH: ""
|
|
run: |
|
|
docker build -t nexus.rancherk3.duckdns.org/tfm/microservicespython:latest .
|
|
docker push nexus.rancherk3.duckdns.org/tfm/microservicespython:latest |