Arm64 docker build

This commit is contained in:
benthecarman
2023-09-29 01:56:30 -05:00
committed by benthecarman
parent 706e137625
commit 4b23571254
2 changed files with 9 additions and 5 deletions

View File

@@ -1,11 +1,10 @@
name: Create and publish amd64 Docker image name: Create and publish Docker images
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: branches:
- master - master
tags: [ "*" ]
release: release:
types: [ published ] types: [ published ]
@@ -22,7 +21,12 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry - name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
@@ -41,7 +45,7 @@ jobs:
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
context: . context: .
platforms: linux/amd64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}

View File

@@ -9,7 +9,7 @@ COPY . /app
WORKDIR /app WORKDIR /app
# I think we need git be here because the vite build wants to look up the commit hash # I think we need git be here because the vite build wants to look up the commit hash
RUN apt update && apt install -y git RUN apt update && apt install -y git python3 make build-essential
# Add the ARG directives for build-time environment variables # Add the ARG directives for build-time environment variables
ARG VITE_NETWORK="bitcoin" ARG VITE_NETWORK="bitcoin"