Skip to content

Commit 64bd3dd

Browse files
committed
stick to two files for now
1 parent 668d9e0 commit 64bd3dd

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/kicad-nightly.yaml

+2-4
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,9 @@ jobs:
3838
uses: docker/build-push-action@v5
3939
with:
4040
context: .
41-
file: ./Dockerfile
41+
file: ./Dockerfile.kicad-nightly
4242
build-args: |
43-
KICAD_PPA=kicad-dev-nightly
44-
KICAD_PACKAGE=kicad-nightly
45-
VERSION=${{ github.sha }}
43+
"VERSION=${{ github.sha }}"
4644
cache-to: "type=registry,ref=ghcr.io/linalinn/kicad-render:cache-${{ github.ref_name }}"
4745
cache-from: "type=registry,ref=ghcr.io/linalinn/kicad-render:cache-${{ github.ref_name }}"
4846
load: true

Dockerfile.kicad-nightly

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:24.04
1+
FROM ubuntu:24.04 as ubuntu-kicad-nightly
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

@@ -10,4 +10,12 @@ RUN apt-get update -y && \
1010
apt-get install -y software-properties-common && \
1111
add-apt-repository -y ppa:kicad/kicad-dev-nightly && \
1212
apt-get install kicad-nightly ffmpeg -y && \
13-
rm -rf /var/lib/apt/lists/*
13+
rm -rf /var/lib/apt/lists/*
14+
15+
FROM ubuntu-kicad-nightly
16+
17+
COPY *.sh /usr/bin/
18+
19+
RUN chmod +rx /usr/bin/render-pcb.sh && chmod +rx /usr/bin/kicad_animation.sh
20+
21+
WORKDIR /pwd

0 commit comments

Comments
 (0)