feat: Remove arm64 build process and related steps from GitHub Actions workflow

This commit is contained in:
2025-03-27 23:11:00 +07:00
parent 6afb34d7f2
commit 4f1723b1ad

View File

@@ -97,80 +97,6 @@ jobs:
run: |
docker push ghcr.io/coder-vippro/chatgpt-discord-bot:latest-amd64
build-arm64:
runs-on: ubuntu-24.04-arm
environment: Private Server Deploy
needs: tests
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image for arm64
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/arm64
tags: ghcr.io/coder-vippro/chatgpt-discord-bot:latest-arm64-fat
cache-from: type=gha,scope=docker-build-cache
cache-to: type=gha,mode=max,scope=docker-build-cache
- name: Install SlimToolkit
run: |
curl -sL https://raw.githubusercontent.com/slimtoolkit/slim/master/scripts/install-slim.sh | sudo -E bash -
- name: Pull image locally for slimming
run: docker pull ghcr.io/coder-vippro/chatgpt-discord-bot:latest-arm64-fat
- name: Slim the Docker image
run: |
slim build --target ghcr.io/coder-vippro/chatgpt-discord-bot:latest-arm64-fat \
--tag ghcr.io/coder-vippro/chatgpt-discord-bot:latest-arm64 \
--http-probe=false \
--include-path=/usr/local/bin \
--include-path=/usr/local/lib/python3.13 \
--include-path=/app \
--include-path=/usr/lib \
--include-bin=/usr/local/bin/python3.13 \
--include-bin=/usr/local/bin/pip \
--preserve-path=/etc/ssl/certs \
--cmd="python3 /app/bot.py"
- name: Display image sizes comparison
run: |
docker images | grep chatgpt-discord-bot
- name: Push slimmed image
run: |
docker push ghcr.io/coder-vippro/chatgpt-discord-bot:latest-arm64
merge-manifest:
runs-on: ubuntu-latest
needs: [build-amd64, build-arm64]
steps:
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create and push multi-arch manifest
run: |
docker buildx imagetools create -t ghcr.io/coder-vippro/chatgpt-discord-bot:latest \
ghcr.io/coder-vippro/chatgpt-discord-bot:latest-amd64 \
ghcr.io/coder-vippro/chatgpt-discord-bot:latest-arm64
deploy-notification:
runs-on: ubuntu-latest
needs: merge-manifest