♻️ refactor: replace Buildx with traditional docker build/push for reliability
This commit is contained in:
@@ -114,9 +114,7 @@ jobs:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.PACKAGES_TOKEN }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
if: steps.check_cache.outputs.cache_hit == 'false'
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
|
||||
- name: Build and push Docker cache image
|
||||
if: steps.check_cache.outputs.cache_hit == 'false'
|
||||
@@ -124,12 +122,15 @@ jobs:
|
||||
IMAGE_NAME="${{ env.CI_REGISTRY }}/${{ env.GITEA_ORG }}/${{ env.GITEA_REPO }}-build-cache:${{ steps.calculate_hash.outputs.deps_hash }}"
|
||||
echo "Building cache image: $IMAGE_NAME"
|
||||
|
||||
docker buildx build \
|
||||
# Build the image using traditional docker build
|
||||
docker build \
|
||||
--file Dockerfile.build \
|
||||
--tag "$IMAGE_NAME" \
|
||||
--push \
|
||||
.
|
||||
|
||||
# Push the image
|
||||
docker push "$IMAGE_NAME"
|
||||
|
||||
echo "✅ Build cache image pushed successfully"
|
||||
|
||||
ci-pipeline:
|
||||
|
||||
Reference in New Issue
Block a user