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
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# Step 2: Set up Node.js version 18
|
# Step 2: Log in to Docker Hub using secrets
|
||||||
- name: Use Node.js version 20
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
|
|
||||||
# Step 3: Log in to Docker Hub using secrets
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
@ -33,20 +27,20 @@ jobs:
|
|||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
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)
|
- name: Set up Docker Buildx (Multi-Arch Builder)
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
driver-opts: image=moby/buildkit:master
|
driver-opts: image=moby/buildkit:master
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
|
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
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
|
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)
|
- name: Build and Push Docker Image (Multi-Arch)
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user