mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-18 06:44:27 +01:00
Arm64 docker build
This commit is contained in:
committed by
benthecarman
parent
706e137625
commit
4b23571254
12
.github/workflows/docker.yml
vendored
12
.github/workflows/docker.yml
vendored
@@ -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 }}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user