Commit 1e3798a 1 parent 296f257 commit 1e3798a Copy full SHA for 1e3798a
File tree 2 files changed +51
-0
lines changed
2 files changed +51
-0
lines changed 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
+ jobs :
8
+ push_to_registry :
9
+ name : Push Docker image to Docker Hub
10
+ runs-on : ubuntu-latest
11
+
12
+ permissions :
13
+ packages : write
14
+ contents : read
15
+ steps :
16
+ - name : Check out the repo
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Login to GitHub Container Registry
20
+ uses : docker/login-action@v3
21
+ with :
22
+ registry : ghcr.io
23
+ username : ${{ github.actor }}
24
+ password : ${{ secrets.GITHUB_TOKEN }}
25
+
26
+ - name : Get current date
27
+ id : date
28
+ run : echo "date=$(date +'%Y-%m-%d-%h-%M')" >> $GITHUB_OUTPUT
29
+
30
+ - name : Build and push Docker image dev
31
+ uses : docker/build-push-action@v5
32
+ with :
33
+ context : .
34
+ file : ./Dockerfile
35
+ push : true
36
+ build-args : |
37
+ "VERSION=${{ github.sha }}-dev"
38
+ 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/*
You can’t perform that action at this time.
0 commit comments