From 7ef9c4e614546fde388dceda4e286ce3735f8146 Mon Sep 17 00:00:00 2001 From: Tomasz Torcz Date: Sat, 27 Jul 2024 15:48:39 +0200 Subject: [PATCH] ga: autobulding containers --- .gitea/workflows/build-push-container.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflows/build-push-container.yaml diff --git a/.gitea/workflows/build-push-container.yaml b/.gitea/workflows/build-push-container.yaml new file mode 100644 index 0000000..3f1baaa --- /dev/null +++ b/.gitea/workflows/build-push-container.yaml @@ -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