Skip to content

Commit

Permalink
chore: speed up ARM build by using artifacts (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-voigt authored Jun 28, 2024
1 parent e3cfee0 commit 06b0cf4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM alpine:latest
ARG TARGETARCH
RUN apk add --no-cache \
graphviz \
ttf-freefont \
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ jobs:
runs-on: ubuntu-latest
needs: [ go-binaries ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -138,6 +140,8 @@ jobs:
- name: Build
uses: docker/build-push-action@v6
with:
context: .
file: .github/Dockerfile
push: true
tags: aoepeople/vistecture:${{ github.ref_name }}
platforms: linux/amd64,linux/arm64
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:15.5.1-alpine3.12 as frontend
FROM node:15.5.1-alpine3.12 AS frontend
COPY . /app
RUN apk add --update python3 make gcc g++
RUN cd /app/controller/web/template && npm install && npm run build

FROM golang:1.17 as build
FROM golang:1.17 AS build
ENV GOOS=linux
ENV CGO_ENABLED=0
COPY . /app
Expand Down

0 comments on commit 06b0cf4

Please sign in to comment.