ga: autobulding containers
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 40s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 40s
This commit is contained in:
20
.gitea/workflows/build-push-container.yaml
Normal file
20
.gitea/workflows/build-push-container.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: Build and push container
|
||||||
|
run-name: Container creation
|
||||||
|
# change later for only tags
|
||||||
|
on: [tag push]
|
||||||
|
jobs:
|
||||||
|
- name: Get the code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
sparse-checkout: |
|
||||||
|
src
|
||||||
|
|
||||||
|
- name: Build & push image ${{ gitea.ref_name }}
|
||||||
|
uses: https://code.thetadev.de/ThetaDev/action-kaniko@v1
|
||||||
|
with:
|
||||||
|
image: ha-addon-energa-meter:${{ gitea.ref_name }}
|
||||||
|
registry: pipebreaker.pl:5000
|
||||||
|
build_file: Containerfile
|
||||||
|
path: src/
|
||||||
|
debug: true
|
||||||
Reference in New Issue
Block a user