feat: activated Linux-x64 Docker Image Workflow and adapted Linux-ARM64 Workflow
Some checks failed
Build ARM64 Linux / build-arm64 (push) Successful in 5m45s
Build Docker Linux ARM64 / build-docker-linux-x64 (push) Successful in 6m34s
Build Docker Linux x64 / build-docker-linux-x64 (push) Has been cancelled
Build Linux x64 / build-linux-x64 (push) Has been cancelled
Build Windows x64 / build-windows-x64 (push) Has been cancelled

This commit is contained in:
2025-12-12 17:25:52 +01:00
parent 050227c888
commit e05ba63149
2 changed files with 19 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ name: Build Docker Linux ARM64
on:
push:
branches:
- main # Hier aktiviert: Läuft nur bei Push auf main
- main
jobs:
build-docker-linux-x64:
@@ -15,22 +15,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
# Buildx ist gut für Cross-Platform, aber auch lokal nützlich
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Linux ARM64 Docker Image
run: docker build -t couchlog-arm64 .
run: docker build -t couchlog-linux-arm64 .
- name: Save Docker Image to Tar
# Jetzt exportieren wir das geladene Image in eine Datei
run: docker save -o CouchLog-arm64.tar couchlog-arm64
run: docker save -o CouchLog-Linux-ARM64-Docker-Image.tar couchlog-linux-arm64
- name: Upload Artifact
# Lädt die Datei in Gitea hoch
uses: actions/upload-artifact@v3
with:
name: couchlog-docker-image-arm64 # So heißt der Download-Button später
path: CouchLog-arm64.tar
name: CouchLog-Linux-ARM64-Docker-Image
path: CouchLog-Linux-ARM64-Docker-Image.tar
if-no-files-found: error
retention-days: 1 # Optional: Wie lange die Datei gespeichert bleibt
retention-days: 1

View File

@@ -3,7 +3,7 @@ name: Build Docker Linux x64
on:
push:
branches:
#- main
- main
jobs:
build-docker-linux-x64:
@@ -19,8 +19,15 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Build Linux x64 Docker Image
run: |
docker buildx build \
--platform linux/amd64 \
-t myapp:linux-x64 \
--load ./CouchLog/CouchLog.sln
run: docker buildx build --platform linux/amd64 -t couchlog-linux-x64
- name: Save Docker Image as tar
run: docker save -o CouchLog-Linux-x64-Docker-Image.tar couchlog-linux-x64
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: CouchLog-Linux-x64-Docker-Image
path: CouchLog-Linux-x64-Docker-Image.tar
if-no-files-found: error
retention-days: 1