Added arm64 build
This commit is contained in:
14
.github/workflows/build.yaml
vendored
14
.github/workflows/build.yaml
vendored
@@ -24,15 +24,10 @@ jobs:
|
||||
docker:
|
||||
name: Build Dockerfile
|
||||
runs-on: ubuntu-latest
|
||||
container: timbru31/node-docker:22
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Clone Repository
|
||||
uses: ztimson/actions/clone@develop
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
@@ -52,16 +47,13 @@ jobs:
|
||||
docker login -u "${{github.repository_owner}}" -p "${{secrets.DEPLOY_TOKEN}}" "$REGISTRY"
|
||||
docker login -u "${{secrets.DOCKER_HUB_USER}}" -p "${{secrets.DOCKER_HUB_TOKEN}}" docker.io
|
||||
|
||||
# Build and push multi-platform images
|
||||
docker buildx build \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
-t "$REGISTRY/${{github.repository}}:latest" \
|
||||
-t "$REGISTRY/${{github.repository}}:arm64-latest" \
|
||||
--push .
|
||||
|
||||
docker buildx build \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
-t "docker.io/ztimson/kiwixm:latest" \
|
||||
-t "docker.io/ztimson/kiwixm:arm64-latest" \
|
||||
--push .
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user