.gitea/workflows/linux_arm64_docker.yaml aktualisiert
Some checks failed
Some checks failed
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
name: Build Docker Linux ARM64
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main # Hier aktiviert: Läuft nur bei Push auf main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-docker-linux-x64:
|
build-docker-linux-x64:
|
||||||
runs-on: [self-hosted, linux, arm64, docker]
|
runs-on: [self-hosted, linux, arm64, docker]
|
||||||
@@ -8,23 +15,27 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# Buildx ist gut für Cross-Platform, aber auch lokal nützlich
|
||||||
- name: Setup Docker Buildx
|
- name: Setup Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Build and Load
|
- name: Build Linux ARM64 Docker Image
|
||||||
uses: docker/build-push-action@v5
|
run: |
|
||||||
with:
|
# Wir bauen das Image und laden es (--load) in den lokalen Docker Daemon
|
||||||
context: .
|
docker buildx build \
|
||||||
platforms: linux/arm64
|
--platform linux/arm64 \
|
||||||
load: true # Lädt es in den lokalen Docker Daemon des Runners
|
-t myapp:linux-arm64 \
|
||||||
tags: myapp:linux-arm64
|
--load .
|
||||||
|
|
||||||
- name: Save Image to Tar
|
- name: Save Docker Image to Tar
|
||||||
run: docker save -o myimage.tar myapp:linux-arm64
|
# Jetzt exportieren wir das geladene Image in eine Datei
|
||||||
|
run: docker save -o my-image-arm64.tar myapp:linux-arm64
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
|
# Lädt die Datei in Gitea hoch
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: docker-image-arm64
|
name: docker-image-arm64 # So heißt der Download-Button später
|
||||||
path: myimage.tar
|
path: my-image-arm64.tar
|
||||||
retention-days: 1
|
if-no-files-found: error
|
||||||
|
retention-days: 1 # Optional: Wie lange die Datei gespeichert bleibt
|
||||||
Reference in New Issue
Block a user