fix ci
docker-node image / build (arm64) (push) Successful in 17s
docker-node image / amend-manifest (push) Failing after 14s

This commit is contained in:
2026-04-27 15:47:02 +07:00
parent 6d6204662e
commit 3553330f3d
+12 -13
View File
@@ -7,8 +7,7 @@ on:
workflow_dispatch: # Cho phép chạy tay nếu cần workflow_dispatch: # Cho phép chạy tay nếu cần
env: env:
IMAGE_BASE: git.thuanle.me/public/image IMAGE_REPO: git.thuanle.me/public/gitea-mcp
IMAGE: gitea-mcp
jobs: jobs:
build: build:
@@ -31,17 +30,17 @@ jobs:
- name: Build Docker images - name: Build Docker images
run: | run: |
echo "Building image ${{ env.IMAGE }} for architecture: ${{ matrix.arch }}" echo "Building image ${{ env.IMAGE_REPO }} for architecture: ${{ matrix.arch }}"
docker build \ docker build \
-f ${{ env.IMAGE }}.Dockerfile \ -f gitea-mcp.Dockerfile \
--build-arg TARGETARCH=${{ matrix.arch }} \ --build-arg TARGETARCH=${{ matrix.arch }} \
-t ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest \ -t ${{ env.IMAGE_REPO }}:${{ matrix.arch }}-latest \
--label "build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ --label "build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
--label "commit_sha=${{ github.sha }}" \ --label "commit_sha=${{ github.sha }}" \
. .
docker push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest docker push ${{ env.IMAGE_REPO }}:${{ matrix.arch }}-latest
amend-manifest: amend-manifest:
runs-on: linux runs-on: linux
@@ -57,11 +56,11 @@ jobs:
- name: Push Docker manifest - name: Push Docker manifest
run: | run: |
echo "Delete existing manifest" echo "Delete existing manifest"
docker manifest rm ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-latest || true docker manifest rm ${{ env.IMAGE_REPO }}:latest || true
echo "Create new manifest"
docker manifest create ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-latest \
${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-amd64-latest \
${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-arm64-latest
docker manifest push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-latest echo "Create new manifest"
docker manifest create ${{ env.IMAGE_REPO }}:latest \
${{ env.IMAGE_REPO }}:amd64-latest \
${{ env.IMAGE_REPO }}:arm64-latest
docker manifest push ${{ env.IMAGE_REPO }}:latest