6 Commits

Author SHA1 Message Date
Matthias Hinrichs 28443b23dc fix: entferne Bedingung für den Hauptbranch beim Docker-Build und aktualisiere go.sum
Build And Test / build (push) Successful in 17s
Build And Test / Build and Publish Docker Image (push) Successful in 2m19s
2025-11-22 00:21:58 +01:00
Matthias Hinrichs cebe2fea32 fix: entferne die Versionierungsprüfung für Docker-Tag-Builds in der CI
Build And Test / build (push) Successful in 18s
Build And Test / Build and Publish Docker Image (push) Has been skipped
2025-11-22 00:14:16 +01:00
Matthias Hinrichs 89bbe901fc fix: korrigiere CI-Pipeline-Namen und füge Tag-Handling für Docker-Images hinzu
Build And Test / build (push) Successful in 21s
Build And Test / Build and Publish Docker Image (push) Failing after 2m29s
2025-11-22 00:03:54 +01:00
Matthias Hinrichs 537c7eeb70 fix: füge Docker-Login für Gitea-Registry zur CI hinzu
Build And Test / build (push) Successful in 1m16s
Build And Test / publish (push) Successful in 4m6s
2025-11-21 23:37:02 +01:00
Matthias Hinrichs f9b519c343 fix: kommentiere den COPY-Befehl für servers.json im Dockerfile aus
Build And Test / build (push) Successful in 17s
Build And Test / publish (push) Failing after 2m11s
2025-11-21 23:30:59 +01:00
Matthias Hinrichs 0fe1abfd28 fix: füge Docker-Login-Schritt für Docker Hub zur CI hinzu
Build And Test / build (push) Successful in 1m3s
Build And Test / publish (push) Failing after 28s
2025-11-21 23:23:19 +01:00
3 changed files with 30 additions and 17 deletions
+27 -4
View File
@@ -3,11 +3,13 @@
#
name: Build And Test
run-name: ${{ gitea.actor }} is runs ci pipeline
run-name: ${{ gitea.actor }} started ci pipeline
on:
push:
branches:
- main
tags:
- 'v*' # Tags, die mit "v" anfangen, z. B. v1.0.0
workflow_dispatch:
jobs:
build:
@@ -24,10 +26,20 @@ jobs:
publish:
needs: build
name: Build and Publish Docker Image
runs-on: ubuntu-latest
if: gitea.ref == 'refs/heads/main'
steps:
- uses: https://github.com/actions/checkout@v6
- name: Docker login to Docker Hub
run: |
echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login docker.io \
--username "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
- name: Docker login to Gitea Registry
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login git.hnrx.net \
--username "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
@@ -38,10 +50,21 @@ jobs:
[registry."git.hnrx.net"]
username = "${{ secrets.DOCKER_USERNAME }}"
password = "${{ secrets.DOCKER_PASSWORD }}"
- name: Build and Push Docker Image
- name: Build and Push Docker latest Image
if: gitea.ref == 'refs/heads/main'
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: git.hnrx.net/homelab/manage-servers:latest
tags: git.hnrx.net/hnrx/manage-servers:latest
file: ./Dockerfile
- name: Build and Push Docker versioned Image ${{ gitea.ref_name }}
if: startsWith(gitea.ref, 'refs/tags/v')
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: git.hnrx.net/hnrx/manage-servers:${{ gitea.ref_name }}
file: ./Dockerfile
+1 -1
View File
@@ -30,7 +30,7 @@ COPY --from=builder /app/manage-servers .
COPY --from=builder /app/index.html .
# Copy the servers.json file
COPY servers.json .
# COPY servers.json .
# Expose the port the web server listens on
EXPOSE 8080
+2 -12
View File
@@ -1,16 +1,6 @@
golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI=
golang.org/x/crypto v0.42.0/go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8=
golang.org/x/crypto v0.43.0 h1:dduJYIi3A3KOfdGOHX8AVZ/jGiyPa3IbBozJ5kNuE04=
golang.org/x/crypto v0.43.0/go.mod h1:BFbav4mRNlXJL4wNeejLpWxB7wMbc79PdRGhWKncxR0=
golang.org/x/crypto v0.44.0 h1:A97SsFvM3AIwEEmTBiaxPPTYpDC47w720rdiiUvgoAU=
golang.org/x/crypto v0.44.0/go.mod h1:013i+Nw79BMiQiMsOPcVCB5ZIJbYkerPrGnOa00tvmc=
golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q=
golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4=
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ=
golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/term v0.35.0 h1:bZBVKBudEyhRcajGcNc3jIfWPqV4y/Kt2XcoigOWtDQ=
golang.org/x/term v0.35.0/go.mod h1:TPGtkTLesOwf2DE8CgVYiZinHAOuy5AYUYT1lENIZnA=
golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU=
golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254=