Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: speed up ARM build by using artifacts #43

Merged
merged 14 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading