ci: switch from legacy docker build to buildx
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -40,7 +40,7 @@ jobs:
|
||||
steps:
|
||||
- name: Clone repository
|
||||
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
|
||||
cd repo
|
||||
git checkout ${{ gitea.ref_name }}
|
||||
@@ -90,7 +90,7 @@ jobs:
|
||||
run: |
|
||||
REGISTRY="gitea.jeanlucmakiola.de"
|
||||
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
|
||||
docker push "${IMAGE}:${VERSION}"
|
||||
docker push "${IMAGE}:latest"
|
||||
|
||||
Reference in New Issue
Block a user