Commit 7ffbfd7 1 parent a858061 commit 7ffbfd7 Copy full SHA for 7ffbfd7
File tree 5 files changed +77
-17
lines changed
5 files changed +77
-17
lines changed Original file line number Diff line number Diff line change 1
- name : build docker image
1
+ name : build kicad-render image
2
2
on :
3
3
push :
4
+ paths :
5
+ - Dockerfile
6
+ - ' *.sh'
7
+ - .github/workflows/image.yaml
8
+
4
9
jobs :
5
10
push_to_registry :
6
11
name : Push Docker image to Docker Hub
@@ -21,12 +26,27 @@ jobs:
21
26
username : ${{ github.actor }}
22
27
password : ${{ secrets.GITHUB_TOKEN }}
23
28
29
+ - name : Get current date
30
+ id : date
31
+ run : echo "date=$(date +'%Y-%m-%d-%H-%M')" >> $GITHUB_OUTPUT
32
+ - name : Build and push Docker image dev
33
+ if : github.ref_name == 'dev'
34
+ uses : docker/build-push-action@v5
35
+ with :
36
+ context : .
37
+ file : ./Dockerfile
38
+ push : true
39
+ build-args : |
40
+ "VERSION=${{ github.sha }}-dev"
41
+ tags : " ghcr.io/linalinn/kicad-render:dev,ghcr.io/linalinn/kicad-render:dev-${{ steps.date.outputs.date }}"
42
+
24
43
- name : Build and push Docker image
44
+ if : github.ref_name == github.event.repository.default_branch
25
45
uses : docker/build-push-action@v5
26
46
with :
27
47
context : .
28
48
file : ./Dockerfile
29
49
push : true
30
50
build-args : |
31
51
"VERSION=${{ github.sha }}"
32
- tags : ghcr.io/linalinn/kicad-render:nightly
52
+ tags : ghcr.io/linalinn/kicad-render:nightly,ghcr.io/linalinn/kicad-render:nightly-${{ steps.date.outputs.date }}
Original file line number Diff line number Diff line change
1
+ name : kicad nightly base
2
+ on :
3
+ workflow_dispatch :
4
+ push :
5
+ paths :
6
+ - Dockerfile.kicad-nightly
7
+ - .github/workflows/kicad-nightly.yaml
8
+ jobs :
9
+ push_to_registry :
10
+ name : Push Docker image to Docker Hub
11
+ runs-on : ubuntu-latest
12
+
13
+ permissions :
14
+ packages : write
15
+ contents : read
16
+ steps :
17
+ - name : Check out the repo
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Login to GitHub Container Registry
21
+ uses : docker/login-action@v3
22
+ with :
23
+ registry : ghcr.io
24
+ username : ${{ github.actor }}
25
+ password : ${{ secrets.GITHUB_TOKEN }}
26
+
27
+ - name : Get current date
28
+ id : date
29
+ run : echo "date=$(date +'%Y-%m-%d-%H-%M')" >> $GITHUB_OUTPUT
30
+
31
+ - name : Build and push Docker image dev
32
+ uses : docker/build-push-action@v5
33
+ with :
34
+ context : .
35
+ file : ./Dockerfile
36
+ push : true
37
+ build-args : |
38
+ "VERSION=${{ github.sha }}-dev"
39
+ tags : " ghcr.io/linalinn/kicad:nightly,ghcr.io/linalinn/kicad:nightly-${{ steps.date.outputs.date }}"
Original file line number Diff line number Diff line change 1
- FROM ubuntu:22.04
2
-
3
- ARG DEBIAN_FRONTEND=noninteractive
4
-
5
- ARG VERSION=no-version
6
-
7
- ENV VERSION=$VERSION
8
-
9
- RUN apt-get update -y && \
10
- apt-get install -y software-properties-common && \
11
- add-apt-repository -y ppa:kicad/kicad-dev-nightly && \
12
- apt-get install kicad-nightly ffmpeg -y && \
13
- rm -rf /var/lib/apt/lists/*
1
+ FROM ghcr.io/linalinn/kicad:nightly-2024-04-09-13-16
14
2
15
3
COPY *.sh /usr/bin/
16
4
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:22.04
2
+
3
+ ARG DEBIAN_FRONTEND=noninteractive
4
+
5
+ ARG VERSION=no-version
6
+
7
+ ENV VERSION=$VERSION
8
+
9
+ RUN apt-get update -y && \
10
+ apt-get install -y software-properties-common && \
11
+ add-apt-repository -y ppa:kicad/kicad-dev-nightly && \
12
+ apt-get install kicad-nightly ffmpeg -y && \
13
+ rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ OUTPUT_DIR="${3:-/pwd}"
29
29
FRAME_DIR=" /tmp/render"
30
30
INPUT_FILE=" $2 "
31
31
ZOOM=0.7
32
- WIDTH=1080
33
- HEIGHT=1080
32
+ WIDTH=300
33
+ HEIGHT=300
34
34
ROTATE_X=0
35
35
ROTATE_Z=45
36
36
ROTATION=360 # Total rotation angle
You can’t perform that action at this time.
0 commit comments