31 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
matthias b107058127 Merge pull request 'chore(deps): update docker/build-push-action action to v6' (#11) from renovate/docker-build-push-action-6.x into main
Build And Test / build (push) Successful in 16s
Build And Test / publish (push) Failing after 2m31s
Reviewed-on: #11
2025-11-21 22:04:17 +00:00
renovate-bot 518daa5b4e chore(deps): update docker/build-push-action action to v6 2025-11-21 22:03:25 +00:00
Matthias Hinrichs a871889aae fix: füge fehlende Anmeldedaten für Docker-Registry hinzu
Build And Test / build (push) Has been cancelled
Build And Test / publish (push) Has been cancelled
2025-11-21 23:00:06 +01:00
Matthias Hinrichs cca13477b0 fix: korrigiere Anführungszeichen für Docker Buildx Konfiguration in der CI
Build And Test / build (push) Successful in 16s
Build And Test / publish (push) Failing after 35s
2025-11-21 22:49:08 +01:00
Matthias Hinrichs 958cc0f9be fix: korrigiere Konfiguration für Docker Buildx in der CI
Build And Test / build (push) Successful in 17s
Build And Test / publish (push) Failing after 17s
2025-11-21 22:44:42 +01:00
Matthias Hinrichs 5edeec6eb3 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
2025-11-21 22:35:45 +01:00
Matthias Hinrichs dcde1991ce feat: erweitere Gitea CI mit Build- und Testschritten
Build And Test / build (push) Successful in 40s
2025-11-21 22:14:47 +01:00
matthias 50f40ddf0e Merge pull request 'chore(deps): update https://github.com/actions/checkout action to v6' (#9) from renovate/https-github.com-actions-checkout-6.x into main
Build And Test / build (push) Successful in 47s
Reviewed-on: #9
2025-11-21 21:07:57 +00:00
matthias dbaecfd2c6 Merge pull request 'chore(deps): update https://github.com/actions/setup-go action to v6' (#10) from renovate/https-github.com-actions-setup-go-6.x into main
Build And Test / build (push) Has been cancelled
Reviewed-on: #10
2025-11-21 21:07:40 +00:00
renovate-bot ba3bc3656e chore(deps): update https://github.com/actions/setup-go action to v6 2025-11-21 21:03:31 +00:00
renovate-bot ed267d3c48 chore(deps): update https://github.com/actions/checkout action to v6 2025-11-21 21:03:27 +00:00
Matthias Hinrichs 0c80e9226e feat: add Gitea CI configuration for build and test pipeline
Build And Test / build (push) Has been cancelled
2025-11-21 22:02:30 +01:00
Matthias Hinrichs 89175de095 feat: add Gitea CI configuration for build and test pipeline 2025-11-21 21:59:42 +01:00
matthias da1ffcdaa2 Merge pull request 'chore(deps): update module golang.org/x/crypto to v0.45.0' (#8) from renovate/golang.org-x-crypto-0.x into main
Reviewed-on: #8
2025-11-20 18:47:26 +00:00
renovate-bot 0ca33ab91f chore(deps): update module golang.org/x/crypto to v0.45.0 2025-11-19 20:04:05 +00:00
matthias e1b1c674fe Merge pull request 'chore(deps): update module golang.org/x/crypto to v0.44.0' (#7) from renovate/golang.org-x-crypto-0.x into main
Reviewed-on: #7
2025-11-17 08:30:05 +00:00
renovate-bot 2d0cc7273d chore(deps): update module golang.org/x/crypto to v0.44.0 2025-11-11 19:03:47 +00:00
matthias 95cecded48 Merge pull request 'chore(deps): update golang docker tag to v1.25.4' (#6) from renovate/golang-1.x into main
Reviewed-on: #6
2025-11-07 00:25:44 +00:00
renovate-bot 432fc70f6a chore(deps): update golang docker tag to v1.25.4 2025-11-05 22:03:42 +00:00
matthias 5f4f2e4c25 Merge pull request 'chore(deps): update golang docker tag to v1.25.3' (#5) from renovate/golang-1.x into main
Reviewed-on: #5
2025-10-18 20:37:33 +00:00
renovate-bot 722445b323 chore(deps): update golang docker tag to v1.25.3 2025-10-14 00:03:59 +00:00
matthias 3ba8e81f70 Merge pull request 'chore(deps): update golang docker tag to v1.25.2' (#3) from renovate/golang-1.x into main
Reviewed-on: #3
2025-10-08 20:41:19 +00:00
matthias 210d44660d Merge pull request 'chore(deps): update module golang.org/x/crypto to v0.43.0' (#4) from renovate/golang.org-x-crypto-0.x into main
Reviewed-on: #4
2025-10-08 20:41:06 +00:00
renovate-bot 6ae55faa4c chore(deps): update module golang.org/x/crypto to v0.43.0 2025-10-08 19:03:50 +00:00
renovate-bot 5ec913ede6 chore(deps): update golang docker tag to v1.25.2 2025-10-07 21:03:26 +00:00
4 changed files with 80 additions and 10 deletions
+70
View File
@@ -0,0 +1,70 @@
#
# .gitea/gitea-ci.yaml
#
name: Build And Test
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:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v6
- name: Use Go
uses: https://github.com/actions/setup-go@v6
with:
go-version: '1.24'
- run: go version
- run: ls -lha
- run: go build -v ./...
publish:
needs: build
name: Build and Publish Docker Image
runs-on: ubuntu-latest
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:
buildkitd-config-inline: |
[registry."docker.io"]
username = "${{ secrets.DOCKERHUB_USERNAME }}"
password = "${{ secrets.DOCKERHUB_TOKEN }}"
[registry."git.hnrx.net"]
username = "${{ secrets.DOCKER_USERNAME }}"
password = "${{ secrets.DOCKER_PASSWORD }}"
- 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/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
+2 -2
View File
@@ -1,5 +1,5 @@
# Stage 1: Builder # Stage 1: Builder
FROM golang:1.25.1-alpine AS builder FROM golang:1.25.4-alpine AS builder
WORKDIR /app WORKDIR /app
@@ -30,7 +30,7 @@ COPY --from=builder /app/manage-servers .
COPY --from=builder /app/index.html . COPY --from=builder /app/index.html .
# Copy the servers.json file # Copy the servers.json file
COPY servers.json . # COPY servers.json .
# Expose the port the web server listens on # Expose the port the web server listens on
EXPOSE 8080 EXPOSE 8080
+2 -2
View File
@@ -2,6 +2,6 @@ module manage-servers
go 1.24.6 go 1.24.6
require golang.org/x/crypto v0.42.0 require golang.org/x/crypto v0.45.0
require golang.org/x/sys v0.36.0 // indirect require golang.org/x/sys v0.38.0 // indirect
+6 -6
View File
@@ -1,6 +1,6 @@
golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI= golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q=
golang.org/x/crypto v0.42.0/go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8= 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.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= 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.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU=
golang.org/x/term v0.35.0/go.mod h1:TPGtkTLesOwf2DE8CgVYiZinHAOuy5AYUYT1lENIZnA= golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254=