Update docker-image.yml

This commit is contained in:
Noxcis 2024-10-12 00:39:32 -05:00 committed by GitHub
parent 34c6f3b14d
commit b63b41c5d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,13 +19,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Node.js version 18
- name: Use Node.js version 20
uses: actions/setup-node@v4
with:
node-version: 20
# Step 3: Log in to Docker Hub using secrets
# Step 2: Log in to Docker Hub using secrets
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
@ -33,20 +27,20 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Step 4: Create and use a new builder with multi-platform support
# Step 3: Create and use a new builder with multi-platform support
- name: Set up Docker Buildx (Multi-Arch Builder)
uses: docker/setup-buildx-action@v3
with:
driver-opts: image=moby/buildkit:master
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
# Step 5: Set up QEMU (for multi-platform emulation)
# Step 4: Set up QEMU (for multi-platform emulation)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
# Step 6: Build and Push Docker Image with multi-platform support (No cache)
# Step 5: Build and Push Docker Image with multi-platform support (No cache)
- name: Build and Push Docker Image (Multi-Arch)
uses: docker/build-push-action@v4
with: