Skip to content

Commit

Permalink
Arm64 docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Sep 29, 2023
1 parent 706e137 commit 4b23571
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Create and publish amd64 Docker image
name: Create and publish Docker images

on:
workflow_dispatch:
push:
branches:
- master
tags: [ "*" ]
release:
types: [ published ]

Expand All @@ -22,7 +21,12 @@ jobs:

steps:
- 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
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
Expand All @@ -41,7 +45,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY . /app
WORKDIR /app

# 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
ARG VITE_NETWORK="bitcoin"
Expand Down

0 comments on commit 4b23571

Please sign in to comment.