feat: füge Docker Build- und Push-Schritte zur CI hinzu
Build And Test / build (push) Successful in 16s
Build And Test / publish (push) Failing after 1m50s

This commit is contained in:
Matthias Hinrichs
2025-11-21 22:35:45 +01:00
parent dcde1991ce
commit 5edeec6eb3
+22 -1
View File
@@ -20,4 +20,25 @@ jobs:
go-version: '1.24' go-version: '1.24'
- run: go version - run: go version
- run: ls -lha - run: ls -lha
- run: go build -v ./... - run: go build -v ./...
publish:
needs: build
runs-on: ubuntu-latest
if: gitea.ref == 'refs/heads/main'
steps:
- uses: https://github.com/actions/checkout@v6
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
config-inline: |
[git.hnrx.net]
username = ${{ secrets.DOCKER_USERNAME }}
password = ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: git.hnrx.net/homelab/manage-servers:latest
file: ./Dockerfile