Skip to content

Commit

Permalink
🔨 added multiplatform build
Browse files Browse the repository at this point in the history
  • Loading branch information
loloToster committed Aug 1, 2024
1 parent 2538647 commit dc77ae4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/docker_hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,24 @@ name: ci
on:
push:
branches:
- 'master'
- "master"

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64
push: true
tags: lolotoster/cloudia:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/arm/v7 node:16-alpine
FROM node:16-alpine

WORKDIR /app

Expand Down

0 comments on commit dc77ae4

Please sign in to comment.