ci: switch from legacy docker build to buildx
Some checks failed
CI / ci (push) Successful in 1m6s
CI / e2e (push) Has been skipped
CI / deploy (push) Failing after 1m14s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-07 15:38:06 +02:00
parent 2c438466a4
commit 99192fe32f
2 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ jobs:
steps: steps:
- name: Clone repository - name: Clone repository
run: | run: |
apk add --no-cache git curl docker-cli apk add --no-cache git curl docker-cli docker-cli-buildx
git clone https://${{ secrets.GITEA_TOKEN }}@gitea.jeanlucmakiola.de/${{ gitea.repository }}.git repo git clone https://${{ secrets.GITEA_TOKEN }}@gitea.jeanlucmakiola.de/${{ gitea.repository }}.git repo
cd repo cd repo
git checkout Develop git checkout Develop
@@ -46,7 +46,7 @@ jobs:
run: | run: |
REGISTRY="gitea.jeanlucmakiola.de" REGISTRY="gitea.jeanlucmakiola.de"
IMAGE="${REGISTRY}/${{ gitea.repository_owner }}/gearbox" IMAGE="${REGISTRY}/${{ gitea.repository_owner }}/gearbox"
docker build -t "${IMAGE}:develop" . docker buildx build -t "${IMAGE}:develop" .
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "$REGISTRY" -u "${{ gitea.repository_owner }}" --password-stdin echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "$REGISTRY" -u "${{ gitea.repository_owner }}" --password-stdin
docker push "${IMAGE}:develop" docker push "${IMAGE}:develop"

View File

@@ -40,7 +40,7 @@ jobs:
steps: steps:
- name: Clone repository - name: Clone repository
run: | run: |
apk add --no-cache git curl jq docker-cli apk add --no-cache git curl jq docker-cli docker-cli-buildx
git clone https://${{ secrets.GITEA_TOKEN }}@gitea.jeanlucmakiola.de/${{ gitea.repository }}.git repo git clone https://${{ secrets.GITEA_TOKEN }}@gitea.jeanlucmakiola.de/${{ gitea.repository }}.git repo
cd repo cd repo
git checkout ${{ gitea.ref_name }} git checkout ${{ gitea.ref_name }}
@@ -90,7 +90,7 @@ jobs:
run: | run: |
REGISTRY="gitea.jeanlucmakiola.de" REGISTRY="gitea.jeanlucmakiola.de"
IMAGE="${REGISTRY}/${{ gitea.repository_owner }}/gearbox" IMAGE="${REGISTRY}/${{ gitea.repository_owner }}/gearbox"
docker build -t "${IMAGE}:${VERSION}" -t "${IMAGE}:latest" . docker buildx build -t "${IMAGE}:${VERSION}" -t "${IMAGE}:latest" .
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "$REGISTRY" -u "${{ gitea.repository_owner }}" --password-stdin echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "$REGISTRY" -u "${{ gitea.repository_owner }}" --password-stdin
docker push "${IMAGE}:${VERSION}" docker push "${IMAGE}:${VERSION}"
docker push "${IMAGE}:latest" docker push "${IMAGE}:latest"