mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 18:54:52 +00:00
Update docker-image.yml
This commit is contained in:
parent
34c6f3b14d
commit
b63b41c5d2
14
.github/workflows/docker-image.yml
vendored
14
.github/workflows/docker-image.yml
vendored
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user