TEST: kaniko
This commit is contained in:
22
.gitea/workflows/build_kaniko.yml
Normal file
22
.gitea/workflows/build_kaniko.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: kaniko
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Build with Kaniko
|
||||||
|
run: |
|
||||||
|
/kaniko/executor \
|
||||||
|
--context . \
|
||||||
|
--dockerfile ./Dockerfile \
|
||||||
|
--destination nexus.rancherk3.duckdns.org/tfm/microserviciospython:${{ github.sha }} \
|
||||||
|
--destination nexus.rancherk3.duckdns.org/tfm/microserviciospython:latest \
|
||||||
|
--cache=true \
|
||||||
|
--cache-dir=/cache
|
||||||
Reference in New Issue
Block a user