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:
@@ -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"
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user