t ci/cd
ci / docker (push) Successful in 2m9s

This commit is contained in:
2025-09-16 00:59:18 +02:00
parent d8b2ae1bc8
commit 89ec474b66
2 changed files with 56 additions and 1 deletions
+55
View File
@@ -0,0 +1,55 @@
name: ci
on:
push:
branches:
- master
- staging
tags:
- '*'
env:
IMAGE_NAME: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}
TAG_SUFFIX: ${{ gitea.ref_type == 'tag' && gitea.ref_name || (gitea.ref_name == 'master' && 'latest' || gitea.ref_name) }}
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Registry
uses: docker/login-action@v2
with:
registry: ${{ vars.REGISTRY_URL }}
username: ${{ vars.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: remote
endpoint: ${{ env.BUILDKIT_ARM64_ENDPOINT }}
- name: Show build context
run: |
echo "Repository: ${{ gitea.repository }}"
echo "Actor: ${{ gitea.actor }}"
echo "Ref: ${{ gitea.ref }}"
echo "SHA: ${{ gitea.sha }}"
- name: Build and Push Docker Image
uses: docker/build-push-action@v6
with:
context: .
file: contrib/docker/Dockerfile
platforms: linux/arm64
build-args: |
BASE_IMAGE=debian:bullseye
GIT_REVISION=${{ gitea.sha }}
push: true
tags: |
${{ env.IMAGE_NAME }}:${{ env.TAG_SUFFIX }}
${{ env.IMAGE_NAME }}:${{ gitea.sha }}
+1 -1
View File
@@ -20,7 +20,7 @@ ENV EBUSD_VERSION $EBUSD_VERSION
ENV GIT_REVISION $GIT_REVISION
ADD . /build
RUN RUNTEST=full GIT_REVISION=$GIT_REVISION ./make_debian.sh --with-knxd
RUN GIT_REVISION=$GIT_REVISION ./make_debian.sh --with-knxd